X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libsigrok.h;h=d68ec1439bcc588cafcde55d0fc411e04750d39a;hb=5b389efcfeff17b0f7466597706c898ad65eb6a9;hp=d7d31a33f131d9a46fa0e572945e5bd7e1c4824f;hpb=2244356d1069c5b13fe3b728a421750900deaafe;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index d7d31a33..d68ec143 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -426,6 +426,12 @@ enum { /** The device can act as a sound level meter. */ SR_HWCAP_SOUNDLEVELMETER, + /** The device can measure temperature. */ + SR_HWCAP_THERMOMETER, + + /** The device can measure humidity. */ + SR_HWCAP_HYGROMETER, + /*--- Device configuration ------------------------------------------*/ /** The device supports setting/changing its samplerate. */ @@ -605,7 +611,7 @@ struct sr_dev_driver { char *name; char *longname; int api_version; - int (*init) (void); + int (*init) (struct sr_context *sr_ctx); int (*cleanup) (void); GSList *(*scan) (GSList *options); GSList *(*dev_list) (void);