MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / srd_decoder_get_by_id

Function srd_decoder_get_by_id

libsigrokdecode4DSL/decoder.c:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 * @since 0.1.0
93 */
94SRD_API struct srd_decoder *srd_decoder_get_by_id(const char *id)
95{
96 GSList *l;
97 struct srd_decoder *dec;
98
99 for (l = pd_list; l; l = l->next) {
100 dec = l->data;
101 if (!strcmp(dec->id, id))
102 return dec;
103 }
104
105 return NULL;
106}
107
108static void channel_free(void *data)
109{

Callers 1

srd_inst_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected