summaryrefslogtreecommitdiff
path: root/libsigrokdecode-internal.h
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.kitta@gmail.com>2015-10-06 22:30:14 +0200
committerDaniel Elstner <daniel.kitta@gmail.com>2015-10-06 23:25:40 +0200
commite9dd2fea0514df9316a12bae191b810811fc9f01 (patch)
treed9da0d07b1c8e9076856ae5cbc8500b1502264f2 /libsigrokdecode-internal.h
parent6d67d057d13318deb0a11de2589b5442df389092 (diff)
downloadlibsigrokdecode-e9dd2fea0514df9316a12bae191b810811fc9f01.tar.gz
libsigrokdecode-e9dd2fea0514df9316a12bae191b810811fc9f01.zip
util: Factor out Python module load
Create a utility function for loading a Python module by its name in UTF-8.
Diffstat (limited to 'libsigrokdecode-internal.h')
-rw-r--r--libsigrokdecode-internal.h1
1 files changed, 1 insertions, 0 deletions
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);