X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=c2c094379b78afb90f14b1c18c1a1621fb161d7c;hp=ea9b8449cf42d620d4f30934dbe2448a0709600b;hb=6f1346fbd7bbb6cca97d8a6c02b36156fce24ec2;hpb=837b08660a2ffaef0d2e47ef9555bd3af3f4874f diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index ea9b8449..c2c09437 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -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);