+ if ((sr_info_get(sdi->driver, SR_DI_HWOPTS, (const void **)&hwopts,
+ NULL) == SR_OK) && hwopts) {
+ printf("Supported driver options:\n");
+ for (i = 0; hwopts[i]; i++) {
+ if (!(hwo = sr_drvopt_get(hwopts[i])))
+ continue;
+ printf(" %s\n", hwo->shortname);
+ }
+ }
+
+ title = "Supported device options:\n";
+ if ((sr_info_get(sdi->driver, SR_DI_HWCAPS, (const void **)&hwcaps,
+ NULL) != SR_OK) || !hwcaps)
+ /* Driver supports no device instance options. */
+ return;
+