From e9dd2fea0514df9316a12bae191b810811fc9f01 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Tue, 6 Oct 2015 22:30:14 +0200 Subject: util: Factor out Python module load Create a utility function for loading a Python module by its name in UTF-8. --- libsigrokdecode-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libsigrokdecode-internal.h') diff --git a/libsigrokdecode-internal.h b/libsigrokdecode-internal.h index 23bfdf4..6084409 100644 --- a/libsigrokdecode-internal.h +++ b/libsigrokdecode-internal.h @@ -96,6 +96,7 @@ SRD_PRIV PyObject *srd_logic_type_new(void); PyMODINIT_FUNC PyInit_sigrokdecode(void); /* util.c */ +SRD_PRIV PyObject *py_import_by_name(const char *name); SRD_PRIV int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr); SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key, char **outstr); SRD_PRIV int py_str_as_str(PyObject *py_str, char **outstr); -- cgit v1.2.3-70-g09d2