]> sigrok.org Git - libsigrok.git/commitdiff
add SR_HWCAP_DEMO_DEVICE capability
authorAnatoly Sokolov <redacted>
Sat, 21 Jan 2012 14:34:11 +0000 (18:34 +0400)
committerBert Vermeulen <redacted>
Sat, 21 Jan 2012 14:56:29 +0000 (15:56 +0100)
hardware/demo/demo.c
sigrok.h.in

index 6605d1e6c321f6fe5be8998d65a4799a5594cce3..0f55e6d5741ff259ed97269291fd069e37c7b693 100644 (file)
@@ -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,
index b341efa1b07d63c758deb59d88badb440133c9d3..437a32b56ce9611324b1a4e010cd5a4521efa84e 100644 (file)
@@ -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. */