X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=7624863b8a881aaa2d0b42dc4820f95c6cf91684;hb=8c5bd53b91c720acf34d770e0f09d2b207b068eb;hp=4f35e8a97f7c95def970cfbab06a376751818f19;hpb=7e6b92b15a863b0b4bb46a1429fa9c4aebc26ed9;p=meshlink 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.