diff options
author | Soeren Apel <soeren@apelpie.net> | 2018-03-17 21:40:36 +0100 |
---|---|---|
committer | Soeren Apel <soeren@apelpie.net> | 2018-03-17 21:40:36 +0100 |
commit | 1a41642e2cd8ecfa703c45264c522866b4c99f01 (patch) | |
tree | 2250cda3efd503a4d92e76beba2914913b2bec19 /srd.c | |
parent | 811167552c54668f6407ac640f8eb47a32980dd8 (diff) | |
download | libsigrokdecode-1a41642e2cd8ecfa703c45264c522866b4c99f01.tar.gz libsigrokdecode-1a41642e2cd8ecfa703c45264c522866b4c99f01.zip |
Fix part of #1128 by adding a way to retrieve PD search paths
As this uses g_slist_copy_deep(), we now require glib 2.34.
Diffstat (limited to 'srd.c')
-rw-r--r-- | srd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -179,6 +179,11 @@ err: return SRD_ERR_PYTHON; } +SRD_API GSList *srd_searchpaths_get(void) +{ + return g_slist_copy_deep(searchpaths, (GCopyFunc)g_strdup, NULL); +} + /** * Initialize libsigrokdecode. * |