diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2017-02-20 18:21:05 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2017-08-20 23:12:36 -0700 |
commit | f6292a1c093ea84b73a1c14eccb3fb91567cf8a9 (patch) | |
tree | 3cda5419f11792d2e507e4d83c998e127e017bcc | |
parent | 95b62fcb6203fae5cf4f5ea093ea58d2eb95e494 (diff) | |
download | rabbitmq-c-f6292a1c093ea84b73a1c14eccb3fb91567cf8a9.tar.gz |
Add AMQP_DEFAULT_VHOST define for "/"
Add a #define for AMQP_DEFAULT_VHOST pointing to "/", which is the
default vhost used by the RabbitMQ broker. This makes the code a bit
more readable, especially in example code.
-rw-r--r-- | librabbitmq/amqp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 6c4659c..e4ddad2 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -361,6 +361,17 @@ AMQP_CALL amqp_version(void); #define AMQP_DEFAULT_HEARTBEAT 0 /** + * \def AMQP_DEFAULT_VHOST + * + * Default RabbitMQ vhost: "/" + * + * \sa amqp_login(), amqp_login_with_properties() + * + * \since v0.9.0 + */ +#define AMQP_DEFAULT_VHOST "/" + +/** * boolean type 0 = false, true otherwise * * \since v0.1 |