summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-07-03 15:17:43 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-07-03 15:17:43 -0700
commit45dbc34b0e150d0dca2c6c0aa676a2053622c7a2 (patch)
tree4044aabb2f3c9605a195a4e534ea9a06e8c9c1fc
parent533a6c4415103548ad193b28cf7419ee852e3c6e (diff)
downloadrabbitmq-c-github-ask-45dbc34b0e150d0dca2c6c0aa676a2053622c7a2.tar.gz
FIX: remove amqp_set_socket() from public API
This should've been removed in da9c2c109a
-rw-r--r--librabbitmq/amqp.h4
-rw-r--r--librabbitmq/amqp_socket.h13
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
@@ -425,10 +425,6 @@ AMQP_DEPRECATED(
);
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,
int channel_max,
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.
*