From: Guus Sliepen Date: Fri, 31 Oct 2014 07:27:34 +0000 (+0100) Subject: Fix definition of mesh::set_channel_accept_cb() and _poll_cb(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8c5bd53b91c720acf34d770e0f09d2b207b068eb;p=meshlink Fix definition of mesh::set_channel_accept_cb() and _poll_cb(). --- 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.