Skip to content

Commit

Permalink
Merge pull request #1559 from bluca/zsock_new_checked
Browse files Browse the repository at this point in the history
Problem: DRAFT zsock_new_*_checked symbols leak
  • Loading branch information
c-rack authored Nov 17, 2016
2 parents 81b7f1e + 6000a72 commit 7249ac5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/zsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ struct _zsock_t {
uint32_t routing_id; // Routing ID for server sockets
};

#ifndef CZMQ_BUILD_DRAFT_API
CZMQ_PRIVATE zsock_t *
zsock_new_server_checked (const char *endpoint, const char *filename, size_t line_nbr);

CZMQ_PRIVATE zsock_t *
zsock_new_client_checked (const char *endpoint, const char *filename, size_t line_nbr);

CZMQ_PRIVATE zsock_t *
zsock_new_radio_checked (const char *endpoint, const char *filename, size_t line_nbr);

CZMQ_PRIVATE zsock_t *
zsock_new_dish_checked (const char *endpoint, const char *filename, size_t line_nbr);

CZMQ_PRIVATE zsock_t *
zsock_new_gather_checked (const char *endpoint, const char *filename, size_t line_nbr);

CZMQ_PRIVATE zsock_t *
zsock_new_scatter_checked (const char *endpoint, const char *filename, size_t line_nbr);
#endif // CZMQ_BUILD_DRAFT_API


// --------------------------------------------------------------------------
// Create a new socket. This macro passes the caller source and line
Expand Down

0 comments on commit 7249ac5

Please sign in to comment.