X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok.h;h=2f31a34b252421555525f752529b247da4e96da5;hb=576790ff7b7e888eeefa79239ffed6d8550c1160;hp=1b4552ca0740f0dfe37522a52593cc4a292e1926;hpb=925dbf9f97c18628ead7cb5a93f95052b48ca0e4;p=libsigrok.git diff --git a/sigrok.h b/sigrok.h index 1b4552ca..2f31a34b 100644 --- a/sigrok.h +++ b/sigrok.h @@ -27,7 +27,6 @@ #include #include - /* * Status/error codes returned by libsigrok functions. * @@ -54,7 +53,6 @@ #define MAX_NUM_PROBES 64 #define MAX_PROBENAME_LEN 32 - /* Handy little macros */ #define KHZ(n) ((n) * 1000) #define MHZ(n) ((n) * 1000000) @@ -70,10 +68,8 @@ #define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) #endif - typedef int (*receive_data_callback) (int fd, int revents, void *user_data); - /* Data types used by hardware plugins for set_configuration() */ enum { T_UINT64, @@ -91,8 +87,6 @@ struct protocol { int stackindex; }; - - /* datafeed_packet.type values */ enum { DF_HEADER, @@ -119,8 +113,6 @@ struct datafeed_header { int num_logic_probes; }; - - struct input { struct input_format *format; char *param; @@ -135,8 +127,6 @@ struct input_format { int (*loadfile) (struct input *in, const char *filename); }; - - struct output { struct output_format *format; struct device *device; @@ -155,7 +145,6 @@ struct output_format { uint64_t *length_out); }; - struct analyzer { char *name; char *filename; @@ -165,7 +154,6 @@ struct analyzer { */ }; - /* Size of a chunk in units */ #define DATASTORE_CHUNKSIZE 512000 @@ -176,7 +164,6 @@ struct datastore { GSList *chunklist; }; - /* * This represents a generic device connected to the system. * For device-specific information, ask the plugin. The plugin_index refers @@ -209,7 +196,6 @@ struct probe { extern GSList *devices; - /* Hardware plugin capabilities */ enum { HWCAP_DUMMY, /* Used to terminate lists */ @@ -235,7 +221,6 @@ struct hwcap_option { char *shortname; }; - struct sigrok_device_instance { int index; int status; @@ -347,4 +332,5 @@ struct session { }; #include "sigrok-proto.h" + #endif