From 4fde4be1e61ed706e300d3cb24264249b1aef825 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 18 May 2018 00:13:42 +0200 Subject: Add srd_searchpaths_get() API docs. --- srd.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'srd.c') diff --git a/srd.c b/srd.c index e040e3a..d4ec44b 100644 --- a/srd.c +++ b/srd.c @@ -188,11 +188,6 @@ err: return SRD_ERR_PYTHON; } -SRD_API GSList *srd_searchpaths_get(void) -{ - return g_slist_copy_deep(searchpaths, (GCopyFunc)g_strdup, NULL); -} - /** * Initialize libsigrokdecode. * @@ -391,4 +386,16 @@ err: return SRD_ERR_PYTHON; } +/** + * Return the list of protocol decoder search paths. + * + * @return The list of search paths used when loading protocol decoders. + * + * @since 0.5.1 + */ +SRD_API GSList *srd_searchpaths_get(void) +{ + return g_slist_copy_deep(searchpaths, (GCopyFunc)g_strdup, NULL); +} + /** @} */ -- cgit v1.2.3-70-g09d2