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. */