#ifdef HAVE_SRD
void show_pd_detail(void)
{
- GSList *l;
+ GSList *l, *ll;
struct srd_decoder *dec;
struct srd_decoder_option *o;
char **pdtokens, **pdtok, *optsep, **ann, *val, *doc;
struct srd_probe *p;
+ struct srd_decoder_annotation_row *r;
pdtokens = g_strsplit(opt_pds, ",", -1);
for (pdtok = pdtokens; *pdtok; pdtok++) {
} else {
printf("None.\n");
}
+ printf("Annotation rows:\n");
+ if (dec->annotation_rows) {
+ for (l = dec->annotation_rows; l; l = l->next) {
+ r = l->data;
+ printf("- %s (%s): ", r->desc, r->id);
+ for (ll = r->ann_classes; ll; ll = ll->next)
+ printf("%d ", GPOINTER_TO_INT(ll->data));
+ printf("\n");
+ }
+ } else {
+ printf("None.\n");
+ }
printf("Required probes:\n");
if (dec->probes) {
for (l = dec->probes; l; l = l->next) {
} else {
printf("None.\n");
}
+ printf("Options:\n");
if (dec->options) {
- printf("Options:\n");
for (l = dec->options; l; l = l->next) {
o = l->data;
val = g_variant_print(o->def, FALSE);
printf("- %s: %s (default %s)\n", o->id, o->desc, val);
g_free(val);
}
+ } else {
+ printf("None.\n");
}
if ((doc = srd_decoder_doc_get(dec))) {
printf("Documentation:\n%s\n",