From: Anatoly Sokolov Date: Sat, 21 Jan 2012 14:34:11 +0000 (+0400) Subject: add SR_HWCAP_DEMO_DEVICE capability X-Git-Tag: libsigrok-0.1.0~168 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a141db8c4acb98c01dbc0a73f82111ee56f1050a;p=libsigrok.git add SR_HWCAP_DEMO_DEVICE capability --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 6605d1e6..0f55e6d5 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -79,6 +79,7 @@ struct databag { static int capabilities[] = { SR_HWCAP_LOGIC_ANALYZER, + SR_HWCAP_DEMO_DEVICE, SR_HWCAP_SAMPLERATE, SR_HWCAP_PATTERN_MODE, SR_HWCAP_LIMIT_SAMPLES, diff --git a/sigrok.h.in b/sigrok.h.in index b341efa1..437a32b5 100644 --- a/sigrok.h.in +++ b/sigrok.h.in @@ -211,6 +211,11 @@ enum { /* TODO: SR_HWCAP_SCOPE, SW_HWCAP_PATTERN_GENERATOR, etc.? */ + /*--- Device types --------------------------------------------------*/ + + /** The device is demo device. */ + SR_HWCAP_DEMO_DEVICE, + /*--- Device options ------------------------------------------------*/ /** The device supports setting/changing its samplerate. */