1 #ifndef PROTON_DISPOSITION_H
2 #define PROTON_DISPOSITION_H 1
28 #include <sys/types.h>
57 #define PN_RECEIVED (0x0000000000000023)
65 #define PN_ACCEPTED (0x0000000000000024)
73 #define PN_REJECTED (0x0000000000000025)
81 #define PN_RELEASED (0x0000000000000026)
90 #define PN_MODIFIED (0x0000000000000027)
#define PN_EXTERN
Definition: import_export.h:53
PN_EXTERN pn_data_t * pn_disposition_data(pn_disposition_t *disposition)
Access the disposition as a raw pn_data_t.
struct pn_data_t pn_data_t
Definition: codec.h:92
PN_EXTERN void pn_disposition_set_undeliverable(pn_disposition_t *disposition, bool undeliverable)
Set the undeliverable flag on a disposition.
struct pn_disposition_t pn_disposition_t
Dispositions record the current state and/or final outcome of a transfer.
Definition: disposition.h:51
PN_EXTERN bool pn_disposition_is_failed(pn_disposition_t *disposition)
Check if a disposition has the failed flag set.
PN_EXTERN uint64_t pn_disposition_get_section_offset(pn_disposition_t *disposition)
Get the section offset associated with a disposition.
struct pn_condition_t pn_condition_t
An AMQP Condition object.
Definition: condition.h:65
PN_EXTERN void pn_disposition_set_failed(pn_disposition_t *disposition, bool failed)
Set the failed flag on a disposition.
PN_EXTERN pn_data_t * pn_disposition_annotations(pn_disposition_t *disposition)
Access the annotations associated with a disposition.
PN_EXTERN uint64_t pn_disposition_type(pn_disposition_t *disposition)
Get the type of a disposition.
PN_EXTERN uint32_t pn_disposition_get_section_number(pn_disposition_t *disposition)
Get the section number associated with a disposition.
PN_EXTERN void pn_disposition_set_section_offset(pn_disposition_t *disposition, uint64_t section_offset)
Set the section offset associated with a disposition.
PN_EXTERN pn_condition_t * pn_disposition_condition(pn_disposition_t *disposition)
Access the condition object associated with a disposition.
PN_EXTERN void pn_disposition_set_section_number(pn_disposition_t *disposition, uint32_t section_number)
Set the section number associated with a disposition.
PN_EXTERN bool pn_disposition_is_undeliverable(pn_disposition_t *disposition)
Check if a disposition has the undeliverable flag set.