X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibsigrok%2Fproto.h;h=e8aa7ab10a423bb46b82e709b078a972640243b8;hb=a1eaa9e066ff8d86db8a1fba6615204d442c53d7;hp=a159baed6c541d0626ac4231053145397ff35a90;hpb=fc74643098877824b7a3cf16cc24de624b191615;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index a159baed..e8aa7ab1 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -124,7 +124,20 @@ SR_API int sr_session_source_remove_channel(struct sr_session *session, /*--- input/input.c ---------------------------------------------------------*/ -SR_API struct sr_input_format **sr_input_list(void); +SR_API const struct sr_input_module **sr_input_list(void); +SR_API const char *sr_input_id_get(const struct sr_input_module *in); +SR_API const char *sr_input_name_get(const struct sr_input_module *in); +SR_API const char *sr_input_description_get(const struct sr_input_module *in); +SR_API const struct sr_input_module *sr_input_find(char *id); +SR_API const struct sr_option **sr_input_options_get(const struct sr_input_module *in); +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 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); /*--- output/output.c -------------------------------------------------------*/