From 45dbc34b0e150d0dca2c6c0aa676a2053622c7a2 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Wed, 3 Jul 2013 15:17:43 -0700 Subject: FIX: remove amqp_set_socket() from public API This should've been removed in da9c2c109a --- librabbitmq/amqp.h | 4 ---- librabbitmq/amqp_socket.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 45e1542..de6eda3 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -424,10 +424,6 @@ AMQP_DEPRECATED( AMQP_CALL amqp_set_sockfd(amqp_connection_state_t state, int sockfd) ); -AMQP_PUBLIC_FUNCTION -void -AMQP_CALL amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket); - AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_tune_connection(amqp_connection_state_t state, diff --git a/librabbitmq/amqp_socket.h b/librabbitmq/amqp_socket.h index 48910ec..fed3947 100644 --- a/librabbitmq/amqp_socket.h +++ b/librabbitmq/amqp_socket.h @@ -78,6 +78,19 @@ struct iovec { }; #endif + +/** + * Set set the socket object for a connection + * + * This assigns a socket object to the connection, closing and deleting any + * existing socket + * + * \param [in] state The connection object to add the socket to + * \param [in] socket The socket object to assign to the connection + */ +void +amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket); + /** * Write to a socket. * -- cgit v1.2.1