44 #define AMQP_BEGIN_DECLS extern "C" {
45 #define AMQP_END_DECLS }
47 #define AMQP_BEGIN_DECLS
48 #define AMQP_END_DECLS
61 #if defined(_WIN32) && defined(_MSC_VER)
62 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
63 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
64 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
66 # define AMQP_PUBLIC_FUNCTION
67 # if !defined(AMQP_STATIC)
68 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
70 # define AMQP_PUBLIC_VARIABLE extern
73 # define AMQP_CALL __cdecl
75 #elif defined(_WIN32) && defined(__BORLANDC__)
76 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
77 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
78 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
80 # define AMQP_PUBLIC_FUNCTION
81 # if !defined(AMQP_STATIC)
82 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
84 # define AMQP_PUBLIC_VARIABLE extern
87 # define AMQP_CALL __cdecl
89 #elif defined(_WIN32) && defined(__MINGW32__)
90 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
91 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
92 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport) extern
94 # define AMQP_PUBLIC_FUNCTION
95 # if !defined(AMQP_STATIC)
96 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
98 # define AMQP_PUBLIC_VARIABLE extern
101 # define AMQP_CALL __cdecl
103 #elif defined(_WIN32) && defined(__CYGWIN__)
104 # if defined(AMQP_BUILD) && !defined(AMQP_STATIC)
105 # define AMQP_PUBLIC_FUNCTION __declspec(dllexport)
106 # define AMQP_PUBLIC_VARIABLE __declspec(dllexport)
108 # define AMQP_PUBLIC_FUNCTION
109 # if !defined(AMQP_STATIC)
110 # define AMQP_PUBLIC_VARIABLE __declspec(dllimport) extern
112 # define AMQP_PUBLIC_VARIABLE extern
115 # define AMQP_CALL __cdecl
117 #elif defined(__GNUC__) && __GNUC__ >= 4
118 # include <sys/uio.h>
119 # define AMQP_PUBLIC_FUNCTION \
120 __attribute__ ((visibility ("default")))
121 # define AMQP_PUBLIC_VARIABLE \
122 __attribute__ ((visibility ("default"))) extern
125 # define AMQP_PUBLIC_FUNCTION
126 # define AMQP_PUBLIC_VARIABLE extern
130 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
131 # define AMQP_DEPRECATED(function) \
132 function __attribute__ ((__deprecated__))
133 #elif defined(_MSC_VER)
134 # define AMQP_DEPRECATED(function) \
135 __declspec(deprecated) function
137 # define AMQP_DEPRECATED(function)
144 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
153 typedef __int64 ssize_t;
155 typedef _W64
int ssize_t;
224 #define AMQP_VERSION_MAJOR 0
225 #define AMQP_VERSION_MINOR 4
226 #define AMQP_VERSION_PATCH 0
227 #define AMQP_VERSION_IS_RELEASE 0
248 #define AMQP_VERSION ((AMQP_VERSION_MAJOR << 24) | \
249 (AMQP_VERSION_MINOR << 16) | \
250 (AMQP_VERSION_PATCH << 8) | \
251 (AMQP_VERSION_IS_RELEASE))
254 #define AMQ_STRINGIFY(s) AMQ_STRINGIFY_HELPER(s)
255 #define AMQ_STRINGIFY_HELPER(s) #s
257 #define AMQ_VERSION_STRING AMQ_STRINGIFY(AMQP_VERSION_MAJOR) "." \
258 AMQ_STRINGIFY(AMQP_VERSION_MINOR) "." \
259 AMQ_STRINGIFY(AMQP_VERSION_PATCH)
274 #if AMQP_VERSION_IS_RELEASE
275 # define AMQP_VERSION_STRING AMQ_VERSION_STRING
277 # define AMQP_VERSION_STRING AMQ_VERSION_STRING "-pre"
320 #define AMQP_DEFAULT_FRAME_SIZE 131072
331 #define AMQP_DEFAULT_MAX_CHANNELS 0
342 #define AMQP_DEFAULT_HEARTBEAT 0
377 typedef struct amqp_bytes_t_ {
387 typedef struct amqp_decimal_t_ {
404 typedef struct amqp_table_t_ {
416 typedef struct amqp_array_t_ {
465 typedef struct amqp_field_value_t_ {
493 typedef struct amqp_table_entry_t_ {
530 typedef struct amqp_pool_blocklist_t_ {
540 typedef struct amqp_pool_t_ {
560 typedef struct amqp_method_t_ {
571 typedef struct amqp_frame_t_ {
589 uint8_t transport_high;
590 uint8_t transport_low;
591 uint8_t protocol_version_major;
592 uint8_t protocol_version_minor;
603 typedef enum amqp_response_type_enum_ {
615 typedef struct amqp_rpc_reply_t_ {
635 typedef enum amqp_sasl_method_enum_ {
658 typedef enum amqp_status_enum_
720 #include <amqp_framing.h>
757 #define AMQP_EMPTY_BYTES amqp_empty_bytes
768 #define AMQP_EMPTY_TABLE amqp_empty_table
779 #define AMQP_EMPTY_ARRAY amqp_empty_array
1020 AMQP_PUBLIC_FUNCTION
1058 AMQP_PUBLIC_FUNCTION
1076 AMQP_PUBLIC_FUNCTION
1097 AMQP_PUBLIC_FUNCTION
1142 AMQP_PUBLIC_FUNCTION
1165 AMQP_PUBLIC_FUNCTION
1193 AMQP_PUBLIC_FUNCTION
1214 AMQP_PUBLIC_FUNCTION
1238 AMQP_PUBLIC_FUNCTION
1264 AMQP_PUBLIC_FUNCTION
1279 AMQP_PUBLIC_FUNCTION
1310 AMQP_PUBLIC_FUNCTION
1335 AMQP_PUBLIC_FUNCTION
1355 AMQP_PUBLIC_FUNCTION
1410 AMQP_PUBLIC_FUNCTION
1476 AMQP_PUBLIC_FUNCTION
1480 struct timeval *tv);
1522 AMQP_PUBLIC_FUNCTION
1555 AMQP_PUBLIC_FUNCTION
1594 AMQP_PUBLIC_FUNCTION
1600 void *decoded_request_method);
1616 AMQP_PUBLIC_FUNCTION
1622 void *decoded_request_method);
1663 AMQP_PUBLIC_FUNCTION
1717 AMQP_PUBLIC_FUNCTION
1720 int channel_max,
int frame_max,
int heartbeat,
1775 AMQP_PUBLIC_FUNCTION
1778 int channel_max,
int frame_max,
int heartbeat,
1781 struct amqp_basic_properties_t_;
1829 AMQP_PUBLIC_FUNCTION
1834 struct amqp_basic_properties_t_
const *properties,
1847 AMQP_PUBLIC_FUNCTION
1865 AMQP_PUBLIC_FUNCTION
1884 AMQP_PUBLIC_FUNCTION
1905 AMQP_PUBLIC_FUNCTION
1925 AMQP_PUBLIC_FUNCTION
1942 AMQP_PUBLIC_FUNCTION
1962 AMQP_PUBLIC_FUNCTION
1979 AMQP_PUBLIC_FUNCTION
2004 AMQP_PUBLIC_FUNCTION
2028 AMQP_PUBLIC_FUNCTION
2051 AMQP_PUBLIC_FUNCTION
2060 typedef struct amqp_message_t_ {
2084 AMQP_PUBLIC_FUNCTION
2097 AMQP_PUBLIC_FUNCTION
2106 typedef struct amqp_envelope_t_ {
2146 AMQP_PUBLIC_FUNCTION
2150 struct timeval *timeout,
int flags);
2159 AMQP_PUBLIC_FUNCTION
2192 AMQP_PUBLIC_FUNCTION
2218 AMQP_PUBLIC_FUNCTION
2240 AMQP_PUBLIC_FUNCTION
2262 AMQP_PUBLIC_FUNCTION
2282 AMQP_PUBLIC_FUNCTION
2295 AMQP_PUBLIC_FUNCTION