]> git.meshlink.io Git - meshlink/commitdiff
Fix definition of mesh::set_channel_accept_cb() and _poll_cb().
authorGuus Sliepen <guus@meshlink.io>
Fri, 31 Oct 2014 07:27:34 +0000 (08:27 +0100)
committerGuus Sliepen <guus@meshlink.io>
Fri, 31 Oct 2014 07:27:34 +0000 (08:27 +0100)
src/meshlink++.h

index 4f35e8a97f7c95def970cfbab06a376751818f19..7624863b8a881aaa2d0b42dc4820f95c6cf91684 100644 (file)
@@ -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.