]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
input: Add sr_input_end().
[libsigrok.git] / src / libsigrok-internal.h
index 73162f8e0f00071175d67ce2c7510051d432cf42..27f0a6153eababeacc4ccb197c986ddbf68fff13 100644 (file)
@@ -211,6 +211,7 @@ struct sr_input {
        const struct sr_input_module *module;
        GString *buf;
        struct sr_dev_inst *sdi;
+       gboolean sdi_ready;
        void *priv;
 };
 
@@ -306,7 +307,9 @@ struct sr_input_module {
         * @retval SR_OK Success
         * @retval other Negative error code.
         */
-       int (*receive) (const struct sr_input *in, GString *buf);
+       int (*receive) (struct sr_input *in, GString *buf);
+
+       int (*end) (struct sr_input *in);
 
        /**
         * This function is called after the caller is finished using
@@ -490,7 +493,7 @@ SR_PRIV struct sr_channel *sr_channel_new(int index, int type,
                gboolean enabled, const char *name);
 
 /* Generic device instances */
-SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status,
+SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int status,
                const char *vendor, const char *model, const char *version);
 SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi);