- struct sr_output_format **outputs, *omod;
- int i;
-
- omod = NULL;
- outputs = sr_output_list();
- for (i = 0; outputs[i]; i++) {
- if (!strcmp(outputs[i]->id, name)) {
- omod = outputs[i];
- break;
- }
- }
-
- return omod;
-}
-
-struct sr_output *setup_output_format(const struct sr_dev_inst *sdi)
-{
- struct sr_output_format *omod;
- GHashTable *fmtargs;
- struct sr_output *o;
+ const struct sr_output_module *omod;
+ const struct sr_option **options;
+ const struct sr_output *o;
+ GHashTable *fmtargs, *fmtopts;