From: Bert Vermeulen Date: Sun, 12 Feb 2012 03:07:22 +0000 (+0100) Subject: srd: extra module path can now optionally be passed to srd_init() X-Git-Tag: sigrok-cli-0.3.0~36 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d3a574f8d5b4333f63b5eb6712c28f4b49a8c013;p=sigrok-cli.git srd: extra module path can now optionally be passed to srd_init() Also environment variable SIGROKDECODE_DIR, if present, is prepended to the module path. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index a9e3001..4502da4 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -114,7 +114,7 @@ static void show_version(void) printf("\n"); /* TODO: Error handling. */ - srd_init(); + srd_init(NULL); printf("Supported protocol decoders:\n"); for (l = srd_list_decoders(); l; l = l->next) { @@ -1006,7 +1006,7 @@ int main(int argc, char **argv) return 1; if (opt_pds) { - if (srd_init() != SRD_OK) { + if (srd_init(NULL) != SRD_OK) { printf("Failed to initialize sigrokdecode\n"); return 1; }