From 1a41642e2cd8ecfa703c45264c522866b4c99f01 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 17 Mar 2018 21:40:36 +0100 Subject: 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. --- srd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'srd.c') 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. * -- cgit v1.2.3-70-g09d2