X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok.h;h=79a767717f4d12746c4ad97cbb1dd9aeeb76ec02;hb=1c5b099a1312ae64307fb7d9a0030643936a3636;hp=aa3f4c71d72080b5fdc6286712aca5382de30606;hpb=50985c2019b2b5a6ce394589d89ee925b4f5e3a9;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index aa3f4c71..79a76771 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -71,6 +71,12 @@ enum { SR_ERR_BUG = -4, /**< Errors hinting at internal bugs. */ SR_ERR_SAMPLERATE = -5, /**< Incorrect samplerate. */ SR_ERR_NA = -6, /**< Not applicable. */ + SR_ERR_DEV_CLOSED = -7, /**< Device is closed, but needs to be open. */ + + /* + * Note: When adding entries here, don't forget to also update the + * sr_strerror() and sr_strerror_name() functions in error.c. + */ }; #define SR_MAX_NUM_PROBES 64 /* Limited by uint64_t. */ @@ -137,14 +143,6 @@ enum { SR_T_KEYVALUE, }; -/** Rational number data type, containing numerator and denominator values. */ -struct sr_rational { - /** Numerator of the rational number. */ - uint64_t p; - /** Denominator of the rational number. */ - uint64_t q; -}; - /** Value for sr_datafeed_packet.type. */ enum { SR_DF_HEADER = 10000,