mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +01:00
Update function prototype for zmq_msg_gets ()
Added modifiers reflect the following properties: - zmq_msg_gets () does not mutate property parameter - zmq_msg_gets () returns a pointer to memory the caller should not modify
This commit is contained in:
parent
c24b457ccf
commit
f81a1304ff
@ -9,7 +9,7 @@ zmq_msg_gets - get message metadata property
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
*char *zmq_msg_gets (zmq_msg_t '*message', char *'property');*
|
*const char *zmq_msg_gets (zmq_msg_t '*message', const char *'property');*
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
|
@ -218,7 +218,7 @@ ZMQ_EXPORT size_t zmq_msg_size (zmq_msg_t *msg);
|
|||||||
ZMQ_EXPORT int zmq_msg_more (zmq_msg_t *msg);
|
ZMQ_EXPORT int zmq_msg_more (zmq_msg_t *msg);
|
||||||
ZMQ_EXPORT int zmq_msg_get (zmq_msg_t *msg, int property);
|
ZMQ_EXPORT int zmq_msg_get (zmq_msg_t *msg, int property);
|
||||||
ZMQ_EXPORT int zmq_msg_set (zmq_msg_t *msg, int property, int optval);
|
ZMQ_EXPORT int zmq_msg_set (zmq_msg_t *msg, int property, int optval);
|
||||||
ZMQ_EXPORT char *zmq_msg_gets (zmq_msg_t *msg, char *property);
|
ZMQ_EXPORT const char *zmq_msg_gets (zmq_msg_t *msg, const char *property);
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -644,7 +644,7 @@ int zmq_msg_set (zmq_msg_t *, int, int)
|
|||||||
|
|
||||||
// Get message metadata string
|
// Get message metadata string
|
||||||
|
|
||||||
char *zmq_msg_gets (zmq_msg_t *msg_, char *property_)
|
const char *zmq_msg_gets (zmq_msg_t *msg_, const char *property_)
|
||||||
{
|
{
|
||||||
// All unknown properties return NULL
|
// All unknown properties return NULL
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user