]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
testo: Fix USB device list leak
[libsigrok.git] / src / libsigrok-internal.h
index 0d6e0dab29d144eb35a56bb3e4851d7781a439b0..589d0a4d00eb1e3b1533e4ae4c1c2ab5d435dbfd 100644 (file)
@@ -401,6 +401,18 @@ struct sr_input_module {
         */
        int (*end) (struct sr_input *in);
 
+        /**
+         * Reset the input module's input handling structures.
+         *
+         * Causes the input module to reset its internal state so that we can
+         * re-send the input data from the beginning without having to
+         * re-create the entire input module.
+         *
+         * @retval SR_OK Success.
+         * @retval other Negative error code.
+         */
+       int (*reset) (struct sr_input *in);
+
        /**
         * This function is called after the caller is finished using
         * the input module, and can be used to free any internal