- for (i = 0; rationals[i].p && rationals[i].q; i++)
- printf(" %s\n", sr_period_string(
- rationals[i].p * rationals[i].q));
-
- } else if (srci->key == SR_CONF_TRIGGER_SOURCE) {
- /* Supported trigger sources */
- printf(" %s", srci->id);
- if (sr_config_list(sdi->driver, SR_CONF_TRIGGER_SOURCE,
- (const void **)&stropts, sdi) != SR_OK) {
- printf("\n");
- continue;
- }
- printf(" - supported trigger sources:\n");
- for (i = 0; stropts[i]; i++)
- printf(" %s\n", stropts[i]);
-
- } else if (srci->key == SR_CONF_FILTER) {
- /* Supported filters */
- printf(" %s", srci->id);
- if (sr_config_list(sdi->driver, SR_CONF_FILTER,
- (const void **)&stropts, sdi) != SR_OK) {
- printf("\n");
- continue;
+ num_elements = g_variant_n_children(gvar_list);
+ for (i = 0; i < num_elements; i++) {
+ gvar = g_variant_get_child_value(gvar_list, i);
+ g_variant_get(gvar, "(tt)", &p, &q);
+ s = sr_period_string(p * q);
+ printf(" %s\n", s);
+ g_free(s);