From 1c213703c9fdd747bc71ea4f64943c3b4269f8cf Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Thu, 15 Aug 2013 13:40:44 -0700 Subject: Add amqp_get_broker_properties() function Add function to return the properties table advertised by the broker on connection to the broker. --- librabbitmq/amqp_private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'librabbitmq/amqp_private.h') diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h index 7fc5b57..1d74773 100644 --- a/librabbitmq/amqp_private.h +++ b/librabbitmq/amqp_private.h @@ -161,6 +161,9 @@ struct amqp_connection_state_t_ { uint64_t next_recv_heartbeat; uint64_t next_send_heartbeat; + + amqp_table_t server_properties; + amqp_pool_t properties_pool; }; amqp_pool_t *amqp_get_or_create_channel_pool(amqp_connection_state_t connection, amqp_channel_t channel); -- cgit v1.2.1 From c2ce2cb0f356a48c409a27bc228dc3ad7218e82f Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Sun, 13 Apr 2014 13:52:02 -0700 Subject: Mingw: specify WINVER 0x0502 when unspecified. WINVER 0x0502 is WinXP SP2 --- librabbitmq/amqp_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'librabbitmq/amqp_private.h') diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h index 1d74773..c2e63c3 100644 --- a/librabbitmq/amqp_private.h +++ b/librabbitmq/amqp_private.h @@ -46,6 +46,14 @@ #include #ifdef _WIN32 +# ifndef WINVER +/* WINVER 0x0502 is WinXP SP2+, Windows Server 2003 SP1+ + * See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx#macros_for_conditional_declarations */ +# define WINVER 0x0502 +# endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include #else # include -- cgit v1.2.1