From: Uwe Hermann Date: Thu, 17 May 2018 22:13:42 +0000 (+0200) Subject: Add srd_searchpaths_get() API docs. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4fde4be1e61ed706e300d3cb24264249b1aef825;p=libsigrokdecode.git Add srd_searchpaths_get() API docs. --- 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); +} + /** @} */