From a141db8c4acb98c01dbc0a73f82111ee56f1050a Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Sat, 21 Jan 2012 18:34:11 +0400 Subject: [PATCH] add SR_HWCAP_DEMO_DEVICE capability --- hardware/demo/demo.c | 1 + sigrok.h.in | 5 +++++ 2 files changed, 6 insertions(+) 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. */