X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok-cli.c;h=0bf2d20ec9940f3b5499e36ed7e6d8c6b2fa57e8;hb=5cf23f529349de140ed24782264d27f5321a8cc7;hp=18cd4a74039d138b2aa249ea3a0ae80e4e59a3cf;hpb=b4bd48e9e67aa84c8ecca1a982767a1969ce0d33;p=sigrok-cli.git diff --git a/sigrok-cli.c b/sigrok-cli.c index 18cd4a7..0bf2d20 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -332,7 +332,7 @@ static void show_dev_detail(void) print_dev_line(sdi); - if (sr_info_get(sdi->driver, SR_DI_TRIGGER_TYPES, (const void **)&charopts, + if (sr_config_list(sdi->driver, SR_CONF_TRIGGER_TYPE, (const void **)&charopts, sdi) == SR_OK && charopts) { printf("Supported triggers: "); while (*charopts) { @@ -424,7 +424,7 @@ static void show_dev_detail(void) } else if (srci->key == SR_CONF_TIMEBASE) { /* Supported time bases */ printf(" %s", srci->id); - if (sr_info_get(sdi->driver, SR_DI_TIMEBASES, + if (sr_config_list(sdi->driver, SR_CONF_TIMEBASE, (const void **)&rationals, sdi) != SR_OK) { printf("\n"); continue; @@ -437,7 +437,7 @@ static void show_dev_detail(void) } else if (srci->key == SR_CONF_TRIGGER_SOURCE) { /* Supported trigger sources */ printf(" %s", srci->id); - if (sr_info_get(sdi->driver, SR_DI_TRIGGER_SOURCES, + if (sr_config_list(sdi->driver, SR_CONF_TRIGGER_SOURCE, (const void **)&stropts, sdi) != SR_OK) { printf("\n"); continue;