X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=c99d4c65f2c0065c7091f15f4611b8d41ade75a6;hb=02e24c0ce0d8;hp=f11efeda3712572c7719c23ef35bc12f9c39f2a0;hpb=00ebcbf48a775e56b6e73a39e69af390db547865;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index f11efeda..c99d4c65 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -124,16 +124,35 @@ 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 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 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 -------------------------------------------------------*/ -SR_API struct sr_output_format **sr_output_list(void); -SR_API struct sr_output *sr_output_new(struct sr_output_format *of, +SR_API const struct sr_output_module **sr_output_list(void); +SR_API const char *sr_output_id_get(const struct sr_output_module *o); +SR_API const char *sr_output_name_get(const struct sr_output_module *o); +SR_API const char *sr_output_description_get(const struct sr_output_module *o); +SR_API const struct sr_output_module *sr_output_find(char *id); +SR_API const struct sr_option **sr_output_options_get(const struct sr_output_module *o); +SR_API void sr_output_options_free(const struct sr_option **opts); +SR_API const struct sr_output *sr_output_new(const struct sr_output_module *o, GHashTable *params, const struct sr_dev_inst *sdi); -SR_API int sr_output_send(struct sr_output *o, +SR_API int sr_output_send(const struct sr_output *o, const struct sr_datafeed_packet *packet, GString **out); -SR_API int sr_output_free(struct sr_output *o); +SR_API int sr_output_free(const struct sr_output *o); /*--- trigger.c -------------------------------------------------------------*/