struct sr_input {
struct sr_input_format *format;
char *param;
- struct device *vdevice;
+ struct sr_device *vdevice;
};
struct sr_input_format {
struct sr_output {
struct sr_output_format *format;
- struct device *device;
+ struct sr_device *device;
char *param;
void *internal;
};
* to the device index within that plugin; it may be handling more than one
* device. All relevant plugin calls take a device_index parameter for this.
*/
-struct device {
+struct sr_device {
/* Which plugin handles this device */
- struct device_plugin *plugin;
+ struct sr_device_plugin *plugin;
/* A plugin may handle multiple devices of the same type */
int plugin_index;
/* List of struct probe* */
uint64_t *list;
};
-struct device_plugin {
+struct sr_device_plugin {
/* Plugin-specific */
char *name;
+ char *longname;
int api_version;
int (*init) (char *deviceinfo);
void (*cleanup) (void);
};
struct session {
- /* List of struct device* */
+ /* List of struct sr_device* */
GSList *devices;
/* List of struct analyzer* */
GSList *analyzers;