]> sigrok.org Git - libsigrok.git/commitdiff
session: Implement dev_clear().
authorBert Vermeulen <redacted>
Wed, 26 Feb 2014 20:35:33 +0000 (21:35 +0100)
committerBert Vermeulen <redacted>
Wed, 26 Feb 2014 20:35:33 +0000 (21:35 +0100)
session_driver.c

index a7ecce6b80674e544a0516563ce164d7a6c9160c..d7e639f3d00234eec4fbb8dba9852c207c6a1ad5 100644 (file)
@@ -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,