#include "libsigrok.h"
#include "libsigrok-internal.h"
+/** @cond PRIVATE */
#define LOG_PREFIX "device"
+/** @endcond */
/**
* @file
*
* @return SR_OK on success, or SR_ERR_ARG on invalid arguments.
*
- * @since 0.2.0
+ * @since 0.3.0
*/
SR_API int sr_dev_channel_name_set(const struct sr_dev_inst *sdi,
int channelnum, const char *name)
* arguments, SR_ERR_ARG is returned and the channel enabled state
* remains unchanged.
*
- * @since 0.2.0
+ * @since 0.3.0
*/
SR_API int sr_dev_channel_enable(const struct sr_dev_inst *sdi, int channelnum,
gboolean state)
for (l = sdi->channels; l; l = l->next) {
ch = l->data;
g_free(ch->name);
- g_free(ch->trigger);
g_free(ch);
}
g_slist_free(sdi->channels);