2014-05-29 00:25:28 +08:00
|
|
|
#ifndef qamqp_global_h__
|
|
|
|
|
#define qamqp_global_h__
|
|
|
|
|
|
2014-06-10 07:26:30 +08:00
|
|
|
#define AMQP_SCHEME "amqp"
|
|
|
|
|
#define AMQP_SSCHEME "amqps"
|
|
|
|
|
#define AMQP_PORT 5672
|
|
|
|
|
#define AMQP_HOST "localhost"
|
|
|
|
|
#define AMQP_VHOST "/"
|
|
|
|
|
#define AMQP_LOGIN "guest"
|
|
|
|
|
#define AMQP_PSWD "guest"
|
|
|
|
|
|
|
|
|
|
#define AMQP_FRAME_MAX 131072
|
|
|
|
|
#define AMQP_FRAME_MIN_SIZE 4096
|
2014-05-29 00:25:28 +08:00
|
|
|
|
2014-05-29 03:33:15 +08:00
|
|
|
#define QAMQP_VERSION "0.3.0"
|
2014-05-29 00:25:28 +08:00
|
|
|
|
|
|
|
|
#define AMQP_CONNECTION_FORCED 320
|
|
|
|
|
|
2014-05-29 03:33:15 +08:00
|
|
|
#ifdef QAMQP_SHARED
|
|
|
|
|
# ifdef QAMQP_BUILD
|
|
|
|
|
# define QAMQP_EXPORT Q_DECL_EXPORT
|
|
|
|
|
# else
|
|
|
|
|
# define QAMQP_EXPORT Q_DECL_IMPORT
|
|
|
|
|
# endif
|
|
|
|
|
#else
|
|
|
|
|
# define QAMQP_EXPORT
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-06-07 01:46:08 +08:00
|
|
|
#define qAmqpDebug if (qgetenv("QAMQP_DEBUG").isEmpty()); else qDebug
|
|
|
|
|
|
2014-05-29 00:25:28 +08:00
|
|
|
#endif // qamqp_global_h__
|