]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
bindings: Update for input API changes.
[libsigrok.git] / bindings / cxx / classes.cpp
index 7a6daa92df7c664c8251f18133fc69586a5aa740..986d4a73086c97d52d6a4e3a353ea14fb1572f4e 100644 (file)
@@ -1289,11 +1289,16 @@ void Input::send(string data)
        check(ret);
 }
 
+void Input::end()
+{
+       check(sr_input_end(_structure));
+}
+
 Input::~Input()
 {
        if (_device)
                delete _device;
-       check(sr_input_free(_structure));
+       sr_input_free(_structure);
 }
 
 InputDevice::InputDevice(shared_ptr<Input> input,