num_probes = DEFAULT_NUM_PROBES;
/* create a virtual device */
- in->vdevice = device_new(NULL, 0, num_probes);
+ in->vdevice = sr_device_new(NULL, 0, num_probes);
return SR_OK;
}
}
struct sr_input_format input_binary = {
- "binary",
- "Raw binary",
- format_match,
- init,
- loadfile,
+ .extension = "binary",
+ .description = "Raw binary",
+ .format_match = format_match,
+ .init = init,
+ .loadfile = loadfile,
};