0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 23:51:04 +08: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:
Martin Hurton 2014-04-30 13:11:12 +02:00
parent c24b457ccf
commit f81a1304ff
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ zmq_msg_gets - get message metadata property
SYNOPSIS
--------
*char *zmq_msg_gets (zmq_msg_t '*message', char *'property');*
*const char *zmq_msg_gets (zmq_msg_t '*message', const char *'property');*
DESCRIPTION

View File

@ -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_get (zmq_msg_t *msg, int property);
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);
/******************************************************************************/

View File

@ -644,7 +644,7 @@ int zmq_msg_set (zmq_msg_t *, int, int)
// 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
return NULL;