Also environment variable SIGROKDECODE_DIR, if present, is prepended
to the module path.
printf("\n");
/* TODO: Error handling. */
printf("\n");
/* TODO: Error handling. */
printf("Supported protocol decoders:\n");
for (l = srd_list_decoders(); l; l = l->next) {
printf("Supported protocol decoders:\n");
for (l = srd_list_decoders(); l; l = l->next) {
- if (srd_init() != SRD_OK) {
+ if (srd_init(NULL) != SRD_OK) {
printf("Failed to initialize sigrokdecode\n");
return 1;
}
printf("Failed to initialize sigrokdecode\n");
return 1;
}