X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=e8aa7ab10a423bb46b82e709b078a972640243b8;hb=4f979115a4206bc1ff72c0319a340cbcad0f4b06;hp=c99d4c65f2c0065c7091f15f4611b8d41ade75a6;hpb=aad21bd8666e7937b3d8b83b1fc0c57865dfc1ec;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index c99d4c65..e8aa7ab1 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -133,8 +133,8 @@ SR_API const struct sr_option **sr_input_options_get(const struct sr_input_modul SR_API void sr_input_options_free(const struct sr_option **options); SR_API struct sr_input *sr_input_new(const struct sr_input_module *imod, GHashTable *options); -SR_API const struct sr_input *sr_input_scan_buffer(GString *buf); -SR_API const struct sr_input *sr_input_scan_file(const char *filename); +SR_API int sr_input_scan_buffer(GString *buf, const struct sr_input **in); +SR_API int sr_input_scan_file(const char *filename, const struct sr_input **in); SR_API struct sr_dev_inst *sr_input_dev_inst_get(const struct sr_input *in); SR_API int sr_input_send(const struct sr_input *in, GString *buf); SR_API int sr_input_free(const struct sr_input *in);