From 8c5bd53b91c720acf34d770e0f09d2b207b068eb Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 31 Oct 2014 08:27:34 +0100 Subject: [PATCH] Fix definition of mesh::set_channel_accept_cb() and _poll_cb(). --- src/meshlink++.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshlink++.h b/src/meshlink++.h index 4f35e8a9..7624863b 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -295,7 +295,7 @@ namespace meshlink { * @param channel A handle for the channel. * @param cb A pointer to the function which will be called when another node sends data to the local node. */ - void set_channel_accept_cb(channel *channel, channel_accept_cb_t cb) { + void set_channel_accept_cb(channel_accept_cb_t cb) { return meshlink_set_channel_accept_cb(this, (meshlink_channel_accept_cb_t)cb); } @@ -311,7 +311,7 @@ namespace meshlink { * If a NULL pointer is given, the callback will be disabled. */ void set_channel_poll_cb(channel *channel, channel_poll_cb_t cb) { - return meshlink_set_channel_poll_cb(this, (meshlink_channel_poll_cb_t)cb); + return meshlink_set_channel_poll_cb(this, channel, (meshlink_channel_poll_cb_t)cb); } /// Open a reliable stream channel to another node. -- 2.39.5