summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
authorSoeren Apel <soeren@apelpie.net>2018-03-17 21:40:36 +0100
committerSoeren Apel <soeren@apelpie.net>2018-03-17 21:40:36 +0100
commit1a41642e2cd8ecfa703c45264c522866b4c99f01 (patch)
tree2250cda3efd503a4d92e76beba2914913b2bec19 /srd.c
parent811167552c54668f6407ac640f8eb47a32980dd8 (diff)
downloadlibsigrokdecode-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/srd.c b/srd.c
index 2c1bdda..68a6a23 100644
--- a/srd.c
+++ b/srd.c
@@ -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.
*