diff options
author | Bert Vermeulen <bert@biot.com> | 2013-01-01 13:04:16 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-01-01 13:04:16 +0100 |
commit | 42515b0f25613499167b66c1d8a659526fb46b8d (patch) | |
tree | 4c73a161b6863bf24f2468e4915ffde2a2702c4e /decoder.c | |
parent | c78eeef14ff4c23d021adf7c439ea173a651db7e (diff) | |
download | libsigrokdecode-42515b0f25613499167b66c1d8a659526fb46b8d.tar.gz libsigrokdecode-42515b0f25613499167b66c1d8a659526fb46b8d.zip |
constify srd_decoder_list() output
Diffstat (limited to 'decoder.c')
-rw-r--r-- | decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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_decoder_list(void) +SRD_API const 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_decoder_list(); l; l = l->next) { + for (l = pd_list; l; l = l->next) { dec = l->data; if (!strcmp(dec->id, id)) return dec; @@ -415,7 +415,7 @@ SRD_API int srd_decoder_unload_all(void) GSList *l; struct srd_decoder *dec; - for (l = srd_decoder_list(); l; l = l->next) { + for (l = pd_list; l; l = l->next) { dec = l->data; srd_decoder_unload(dec); } |