summaryrefslogtreecommitdiff
path: root/bindings/cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-16 15:08:37 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-16 15:08:37 +0100
commitab5abf6c7ec7668c4a8373d87c491d22d0db144d (patch)
treeead3b180990fccc22c317199f4b2002d60c557cb /bindings/cpp
parent02202ec30ecca9e538cc807ce86b54d822c823bd (diff)
hint parameter added to zmq_free function
Diffstat (limited to 'bindings/cpp')
-rw-r--r--bindings/cpp/zmq.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/bindings/cpp/zmq.hpp b/bindings/cpp/zmq.hpp
index 1867270..4349f0b 100644
--- a/bindings/cpp/zmq.hpp
+++ b/bindings/cpp/zmq.hpp
@@ -74,9 +74,10 @@ namespace zmq
throw error_t ();
}
- inline message_t (void *data_, size_t size_, free_fn *ffn_)
+ inline message_t (void *data_, size_t size_, free_fn *ffn_,
+ void *hint_ = NULL)
{
- int rc = zmq_msg_init_data (this, data_, size_, ffn_);
+ int rc = zmq_msg_init_data (this, data_, size_, ffn_, hint_);
if (rc != 0)
throw error_t ();
}
@@ -108,12 +109,13 @@ namespace zmq
throw error_t ();
}
- inline void rebuild (void *data_, size_t size_, free_fn *ffn_)
+ inline void rebuild (void *data_, size_t size_, free_fn *ffn_,
+ void *hint_ = NULL)
{
int rc = zmq_msg_close (this);
if (rc != 0)
throw error_t ();
- rc = zmq_msg_init_data (this, data_, size_, ffn_);
+ rc = zmq_msg_init_data (this, data_, size_, ffn_, hint_);
if (rc != 0)
throw error_t ();
}