{
srd_dbg("Exiting libsigrokdecode.");
- srd_decoders_unload_all();
+ srd_decoder_unload_all();
g_slist_free(pd_list);
/* Py_Finalize() returns void, any finalization errors are ignored. */
wchar_t *wc_new_path;
char *item;
- srd_dbg("adding %s to module path", path);
+ srd_dbg("Adding '%s' to module path.", path);
new_path = g_string_sized_new(256);
g_string_assign(new_path, g_strdup(path));
*
* @return List of decoders, NULL if none are supported or loaded.
*/
-SRD_API GSList *srd_decoders_list(void)
+SRD_API GSList *srd_decoder_list(void)
{
return pd_list;
}
GSList *l;
struct srd_decoder *dec;
- for (l = srd_decoders_list(); l; l = l->next) {
+ for (l = srd_decoder_list(); l; l = l->next) {
dec = l->data;
if (!strcmp(dec->id, id))
return dec;
int alen, ret, i;
char **ann;
- srd_dbg("Loading module '%s'.", module_name);
+ srd_dbg("Loading protocol decoder '%s'.", module_name);
py_basedec = py_method = py_attr = NULL;
*/
SRD_API int srd_decoder_unload(struct srd_decoder *dec)
{
- srd_dbg("Unloading decoder '%s'.", dec->name);
+ srd_dbg("Unloading protocol decoder '%s'.", dec->name);
/*
* Since any instances of this decoder need to be released as well,
*
* @return SRD_OK upon success, a (negative) error code otherwise.
*/
-SRD_API int srd_decoders_load_all(void)
+SRD_API int srd_decoder_load_all(void)
{
GDir *dir;
GError *error;
*
* @return SRD_OK upon success, a (negative) error code otherwise.
*/
-SRD_API int srd_decoders_unload_all(void)
+SRD_API int srd_decoder_unload_all(void)
{
GSList *l;
struct srd_decoder *dec;
- for (l = srd_decoders_list(); l; l = l->next) {
+ for (l = srd_decoder_list(); l; l = l->next) {
dec = l->data;
srd_decoder_unload(dec);
}
/*--- decoder.c -------------------------------------------------------------*/
-SRD_API GSList *srd_decoders_list(void);
+SRD_API GSList *srd_decoder_list(void);
SRD_API struct srd_decoder *srd_decoder_get_by_id(const char *id);
SRD_API int srd_decoder_load(const char *name);
SRD_API int srd_decoder_unload(struct srd_decoder *dec);
-SRD_API int srd_decoders_load_all(void);
-SRD_API int srd_decoders_unload_all(void);
+SRD_API int srd_decoder_load_all(void);
+SRD_API int srd_decoder_unload_all(void);
SRD_API char *srd_decoder_doc(const struct srd_decoder *dec);
/*--- log.c -----------------------------------------------------------------*/