From: Uwe Hermann Date: Sun, 2 Dec 2012 16:21:13 +0000 (+0100) Subject: demo: Add missing dev_clear() API call. X-Git-Tag: dsupstream~494 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eebb606762218d7e87a18721bad0d47892e220e9;p=libsigrok.git demo: Add missing dev_clear() API call. --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 9c7b2b4f..0c4c211e 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -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,