summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2016-04-21 01:33:49 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-05-04 19:34:47 +0200
commitbe93391b62b1575ad75db99bf25fef245b85f8b7 (patch)
tree2c6195b12949a3ecefae02a83ff7d8f6096ca50d /srd.c
parent30d775b095a4b76e5fa755b19d5521affa3c053c (diff)
downloadlibsigrokdecode-be93391b62b1575ad75db99bf25fef245b85f8b7.tar.gz
libsigrokdecode-be93391b62b1575ad75db99bf25fef245b85f8b7.zip
Add common directory for shared modules.
Diffstat (limited to 'srd.c')
-rw-r--r--srd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/srd.c b/srd.c
index 2947ca8..c74d2de 100644
--- a/srd.c
+++ b/srd.c
@@ -169,6 +169,12 @@ SRD_API int srd_init(const char *path)
}
}
#ifdef DECODERS_DIR
+ /* Common modules for use by any decoder. */
+ if ((ret = srd_decoder_searchpath_add(COMMON_DIR)) != SRD_OK) {
+ Py_Finalize();
+ return ret;
+ }
+
/* Hardcoded decoders install location, if defined. */
if ((ret = srd_decoder_searchpath_add(DECODERS_DIR)) != SRD_OK) {
Py_Finalize();