*
* @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;
}
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;
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);
}
/*--- decoder.c -------------------------------------------------------------*/
-SRD_API GSList *srd_decoder_list(void);
+SRD_API const 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);