From: Uwe Hermann Date: Sun, 20 Jan 2013 18:57:04 +0000 (+0100) Subject: uni-t-dmm: Expose hwopts. X-Git-Tag: dsupstream~342 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=73365eaed046b2242a3080cfd282edfa266b1d2f;p=libsigrok.git uni-t-dmm: Expose hwopts. --- diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index 66d4ef48..7c6ad77f 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -26,6 +26,11 @@ #define UNI_T_UT_D04_NEW "1a86.e008" +static const int hwopts[] = { + SR_HWOPT_CONN, + 0, +}; + static const int hwcaps[] = { SR_HWCAP_MULTIMETER, SR_HWCAP_LIMIT_SAMPLES, @@ -189,6 +194,9 @@ static int hw_info_get(int info_id, const void **data, sr_spew("Backend requested info_id %d.", info_id); switch (info_id) { + case SR_DI_HWOPTS: + *data = hwopts; + break; case SR_DI_HWCAPS: *data = hwcaps; sr_spew("%s: Returning hwcaps.", __func__);