X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdevice.c;h=99ccd42f1d9be3b78693a7f626c79e4d2b5010cd;hb=17a82e83ff4c2a7dc1bcc4f5ab6197c16a3b72de;hp=519a1726399b060719df6c43f2432900266e3273;hpb=fa2ce8c762fb62cd632eb2a8b4f24128ca742678;p=libsigrok.git diff --git a/src/device.c b/src/device.c index 519a1726..99ccd42f 100644 --- a/src/device.c +++ b/src/device.c @@ -135,10 +135,18 @@ SR_API int sr_dev_channel_enable(struct sr_channel *channel, gboolean state) return SR_OK; } -/* Returns the next enabled channel, wrapping around if necessary. */ -/** @private */ +/** + * Returns the next enabled channel, wrapping around if necessary. + * + * @param[in] sdi The device instance the channel is connected to. + * Must not be NULL. + * @param[in] cur_channel The current channel. + * + * @return A pointer to the next enabled channel of this device. + * + * @private + */ SR_PRIV struct sr_channel *sr_next_enabled_channel(const struct sr_dev_inst *sdi, - struct sr_channel *cur_channel) { struct sr_channel *next_channel;