Skip to content

Commit

Permalink
Problem: DRAFT zsock_new_*_checked symbols leak
Browse files Browse the repository at this point in the history
Solution: when CZMQ_BUILD_DRAFT_API is not set add CZMQ_PRIVATE to
their definition to avoid symbols leaking in the shared object.
  • Loading branch information
bluca committed Nov 17, 2016
1 parent 81b7f1e commit 6000a72
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 6000a72

Please sign in to comment.