summaryrefslogtreecommitdiff
path: root/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'decode.c')
-rw-r--r--decode.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 536be2c..7125d32 100644
--- a/decode.c
+++ b/decode.c
@@ -31,7 +31,7 @@
#endif
/* The list of protocol decoders. */
-GSList *list_pds;
+GSList *list_pds = NULL;
/**
* Initialize libsigrokdecode.
@@ -71,6 +71,18 @@ int sigrokdecode_init(void)
}
/**
+ * Returns the list of supported/loaded protocol decoders.
+ *
+ * This is a GSList containing the names of the decoders as strings.
+ *
+ * @return List of decoders, NULL if none are supported or loaded.
+ */
+GSList *sigrokdecode_list_decoders(void)
+{
+ return list_pds;
+}
+
+/**
* Helper function to handle Python strings.
*
* TODO: @param entries.