]> sigrok.org Git - libsigrok.git/commitdiff
demo: Add missing dev_clear() API call.
authorUwe Hermann <redacted>
Sun, 2 Dec 2012 16:21:13 +0000 (17:21 +0100)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 16:21:13 +0000 (17:21 +0100)
hardware/demo/demo.c

index 9c7b2b4f0fc0879c3e1d72e5a822560c3548d193..0c4c211e9f085d2f1aadc4bf124d4709759a89a1 100644 (file)
@@ -146,6 +146,13 @@ static int default_pattern = PATTERN_SIGROK;
 
 static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data);
 
+static int clear_instances(void)
+{
+       /* Nothing needed so far. */
+
+       return SR_OK;
+}
+
 static int hw_init(void)
 {
        struct drv_context *drvc;
@@ -505,6 +512,7 @@ SR_PRIV struct sr_dev_driver demo_driver_info = {
        .cleanup = hw_cleanup,
        .scan = hw_scan,
        .dev_list = hw_dev_list,
+       .dev_clear = clear_instances,
        .dev_open = hw_dev_open,
        .dev_close = hw_dev_close,
        .info_get = hw_info_get,