X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=c2c094379b78afb90f14b1c18c1a1621fb161d7c;hb=6f1346fbd7bbb6cca97d8a6c02b36156fce24ec2;hp=3d3e354a1baf93a74d5e5041b35a1c878f04a16e;hpb=24287ea9e3dd0c6f7fc2299eaf725346b8c1fea2;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index 3d3e354a..c2c09437 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -33,7 +33,7 @@ SR_API int sr_analog_to_float(const struct sr_datafeed_analog2 *analog, SR_API int sr_analog_float_to_string(float value, int digits, char **result); SR_API int sr_analog_unit_to_string(const struct sr_datafeed_analog2 *analog, char **result); -SR_API inline void sr_rational_set(struct sr_rational *r, uint64_t p, uint64_t q); +SR_API void sr_rational_set(struct sr_rational *r, uint64_t p, uint64_t q); /*--- backend.c -------------------------------------------------------------*/ @@ -54,9 +54,9 @@ SR_API char *sr_log_logdomain_get(void); /*--- device.c --------------------------------------------------------------*/ -SR_API int sr_dev_channel_name_set(const struct sr_dev_inst *sdi, - int channelnum, const char *name); -SR_API int sr_dev_channel_enable(const struct sr_dev_inst *sdi, int channelnum, +SR_API int sr_dev_channel_name_set(struct sr_channel *channel, + const char *name); +SR_API int sr_dev_channel_enable(struct sr_channel *channel, gboolean state); SR_API gboolean sr_dev_has_option(const struct sr_dev_inst *sdi, int key); SR_API GSList *sr_dev_list(const struct sr_dev_driver *driver); @@ -147,11 +147,13 @@ SR_API int sr_session_source_remove_channel(struct sr_session *session, /*--- input/input.c ---------------------------------------------------------*/ 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 char *sr_input_id_get(const struct sr_input_module *imod); +SR_API const char *sr_input_name_get(const struct sr_input_module *imod); +SR_API const char *sr_input_description_get(const struct sr_input_module *imod); +SR_API const char *const *sr_input_extensions_get( + const struct sr_input_module *imod); 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 const struct sr_option **sr_input_options_get(const struct sr_input_module *imod); 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); @@ -165,18 +167,33 @@ SR_API void sr_input_free(const struct sr_input *in); /*--- output/output.c -------------------------------------------------------*/ 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 char *sr_output_id_get(const struct sr_output_module *omod); +SR_API const char *sr_output_name_get(const struct sr_output_module *omod); +SR_API const char *sr_output_description_get(const struct sr_output_module *omod); +SR_API const char *const *sr_output_extensions_get( + const struct sr_output_module *omod); 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 const struct sr_option **sr_output_options_get(const struct sr_output_module *omod); 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, +SR_API const struct sr_output *sr_output_new(const struct sr_output_module *omod, GHashTable *params, const struct sr_dev_inst *sdi); 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(const struct sr_output *o); +/*--- transform/transform.c -------------------------------------------------*/ + +SR_API const struct sr_transform_module **sr_transform_list(void); +SR_API const char *sr_transform_id_get(const struct sr_transform_module *tmod); +SR_API const char *sr_transform_name_get(const struct sr_transform_module *tmod); +SR_API const char *sr_transform_description_get(const struct sr_transform_module *tmod); +SR_API const struct sr_transform_module *sr_transform_find(const char *id); +SR_API const struct sr_option **sr_transform_options_get(const struct sr_transform_module *tmod); +SR_API void sr_transform_options_free(const struct sr_option **opts); +SR_API const struct sr_transform *sr_transform_new(const struct sr_transform_module *tmod, + GHashTable *params, const struct sr_dev_inst *sdi); +SR_API int sr_transform_free(const struct sr_transform *t); + /*--- trigger.c -------------------------------------------------------------*/ SR_API struct sr_trigger *sr_trigger_new(const char *name);