[zeromq-dev] [PATCH] Re: c++ api issues

Martin Lucina mato at kotelna.sk
Thu Oct 21 17:13:23 CEST 2010


Hi,

> diff --git a/include/zmq.h b/include/zmq.h
> index 275f801..31d7ace 100644
> --- a/include/zmq.h
> +++ b/include/zmq.h
> @@ -149,6 +149,7 @@ ZMQ_EXPORT int zmq_msg_close (zmq_msg_t *msg);
>  ZMQ_EXPORT int zmq_msg_move (zmq_msg_t *dest, zmq_msg_t *src);
>  ZMQ_EXPORT int zmq_msg_copy (zmq_msg_t *dest, zmq_msg_t *src);
>  ZMQ_EXPORT void *zmq_msg_data (zmq_msg_t *msg);
> +ZMQ_EXPORT const void *zmq_msg_const_data (zmq_msg_t *msg);
>  ZMQ_EXPORT size_t zmq_msg_size (const zmq_msg_t *msg);
>  
>  /******************************************************************************/

Adding zmq_msg_const_data() implies a core API change, not likely to happen
just because of the lack of "const", sorry.

-mato



More information about the zeromq-dev mailing list