diff options
author | Alexander Klauer <Alexander.Klauer@itwm.fraunhofer.de> | 2013-09-26 10:31:31 +0200 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-10-03 23:18:24 -0700 |
commit | 5f291ea772a536da3087f216e240016365e61a82 (patch) | |
tree | 1958da0b4a718d91778ea53511cba47133c199cc /librabbitmq | |
parent | fac34656c0c9ad230232fe7b15a57de6c811d3e5 (diff) | |
download | rabbitmq-c-github-ask-5f291ea772a536da3087f216e240016365e61a82.tar.gz |
amqp.h: delivery mode constants
RabbitMQ defines two delivery modes, persistent and non-persistent, see
http://www.rabbitmq.com/amqp-0-9-1-reference.html#class.basic for more
information. This commit adds enumeration constants for these delivery
modes.
Diffstat (limited to 'librabbitmq')
-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 830dead..0dab46e 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -715,6 +715,17 @@ typedef enum amqp_status_enum_ AMQP_STATUS_SSL_CONNECTION_FAILED = -0x0203 /**< SSL handshake failed. */ } amqp_status_enum; +/** + * AMQP delivery modes. + * Use these values for the #amqp_basic_properties_t::delivery_mode field. + * + * \since v0.5 + */ +typedef enum { + AMQP_DELIVERY_NONPERSISTENT = 1, /**< Non-persistent message */ + AMQP_DELIVERY_PERSISTENT = 2 /**< Persistent message */ +} amqp_delivery_mode_enum; + AMQP_END_DECLS #include <amqp_framing.h> |