X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Flibsigrok-internal.h;h=27f0a6153eababeacc4ccb197c986ddbf68fff13;hb=7066fd466038bb4a8d09751f8a53c2452c5fefc1;hp=73162f8e0f00071175d67ce2c7510051d432cf42;hpb=8143cfdc90fc164e083a19c60b5b5d32a6b34f47;p=libsigrok.git diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index 73162f8e..27f0a615 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -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);