From 8ad6e500312084cd4ae43c7bda476cc7370cda20 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 16 Mar 2012 15:25:53 +0100 Subject: srd/cli/qt:s/decoders/decoder/ for consistency. --- decoder.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'decoder.c') diff --git a/decoder.c b/decoder.c index f620c1e..d7780d5 100644 --- a/decoder.c +++ b/decoder.c @@ -36,7 +36,7 @@ extern SRD_PRIV PyObject *mod_sigrokdecode; * * @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; } @@ -53,7 +53,7 @@ SRD_API struct srd_decoder *srd_decoder_get_by_id(const char *id) 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; @@ -134,7 +134,7 @@ SRD_API int srd_decoder_load(const char *module_name) 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; @@ -340,7 +340,7 @@ static void free_probes(GSList *probelist) */ 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, @@ -379,7 +379,7 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec) * * @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; @@ -404,12 +404,12 @@ SRD_API int srd_decoders_load_all(void) * * @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); } -- cgit v1.2.3-70-g09d2