#endif
/* The list of protocol decoders. */
-GSList *list_pds;
+GSList *list_pds = NULL;
/**
* Initialize libsigrokdecode.
return SIGROKDECODE_OK;
}
+/**
+ * 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.
*