]> sigrok.org Git - libsigrok.git/blobdiff - session.c
libsigrok: closedev() now has a return code.
[libsigrok.git] / session.c
index 6e597ab34dd87065a0fc3bd23e16d2b4c45abb11..b80ab7d59f489ff4bcd3e87918a2e3454b2ee806 100644 (file)
--- a/session.c
+++ b/session.c
@@ -71,8 +71,8 @@ int sr_session_device_add(struct sr_device *device)
 {
        int ret;
 
-       if (device->plugin && device->plugin->open) {
-               ret = device->plugin->open(device->plugin_index);
+       if (device->plugin && device->plugin->opendev) {
+               ret = device->plugin->opendev(device->plugin_index);
                if (ret != SR_OK)
                        return ret;
        }