int stackindex;
};
-/* datafeed_packet.type values */
+/* sr_datafeed_packet.type values */
enum {
DF_HEADER,
DF_END,
DF_PD,
};
-struct datafeed_packet {
+struct sr_datafeed_packet {
uint16_t type;
uint64_t length;
uint16_t unitsize;
void *payload;
};
-struct datafeed_header {
+struct sr_datafeed_header {
int feed_version;
struct timeval starttime;
uint64_t samplerate;
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;