From: Bert Vermeulen Date: Wed, 26 Feb 2014 20:35:33 +0000 (+0100) Subject: session: Implement dev_clear(). X-Git-Tag: libsigrok-0.3.0~137 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=824fba03415058388108378dadb30b2efcb499a2;p=libsigrok.git session: Implement dev_clear(). --- diff --git a/session_driver.c b/session_driver.c index a7ecce6b..d7e639f3 100644 --- a/session_driver.c +++ b/session_driver.c @@ -173,7 +173,7 @@ static int init(struct sr_context *sr_ctx) return SR_OK; } -static int cleanup(void) +static int dev_clear(void) { GSList *l; @@ -310,10 +310,10 @@ SR_PRIV struct sr_dev_driver session_driver = { .longname = "Session-emulating driver", .api_version = 1, .init = init, - .cleanup = cleanup, + .cleanup = dev_clear, .scan = NULL, .dev_list = NULL, - .dev_clear = NULL, + .dev_clear = dev_clear, .config_get = config_get, .config_set = config_set, .config_list = config_list,