Repository: qpid-proton Updated Branches: refs/heads/master 9ec97b51c -> fa677481c
PROTON-1415: event.h move event aliases to connection_driver.h Changed the event type aliases PN_TRANSPORT_READ/WRITE_CLOSED from static const to #define, and moved them to connection_driver.h. The static const clutters the ABI and the aliases are intended to match with connection_driver_t function names so they belong in connection_driver.h. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/fa677481 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/fa677481 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/fa677481 Branch: refs/heads/master Commit: fa677481c6a681004e5bdc2462e73876f9edf71d Parents: 9ec97b5 Author: Alan Conway <[email protected]> Authored: Fri Feb 24 16:18:39 2017 -0500 Committer: Alan Conway <[email protected]> Committed: Fri Feb 24 16:18:39 2017 -0500 ---------------------------------------------------------------------- proton-c/include/proton/connection_driver.h | 13 +++++++++++++ proton-c/include/proton/event.h | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fa677481/proton-c/include/proton/connection_driver.h ---------------------------------------------------------------------- diff --git a/proton-c/include/proton/connection_driver.h b/proton-c/include/proton/connection_driver.h index b34376d..53a9c56 100644 --- a/proton-c/include/proton/connection_driver.h +++ b/proton-c/include/proton/connection_driver.h @@ -241,6 +241,19 @@ PN_EXTERN void pn_connection_driver_vlogf(pn_connection_driver_t *d, const char PN_EXTERN pn_connection_driver_t* pn_event_batch_connection_driver(pn_event_batch_t *batch); /** + * The write side of the transport is closed, it will no longer produce bytes to write to + * external IO. Synonynm for PN_TRANSPORT_HEAD_CLOSED + */ +#define PN_TRANSPORT_WRITE_CLOSED PN_TRANSPORT_HEAD_CLOSED + +/** + * The read side of the transport is closed, it will no longer read bytes from external + * IO. Alisas for PN_TRANSPORT_TAIL_CLOSED + */ +#define PN_TRANSPORT_READ_CLOSED PN_TRANSPORT_TAIL_CLOSED + + +/** * @} */ http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fa677481/proton-c/include/proton/event.h ---------------------------------------------------------------------- diff --git a/proton-c/include/proton/event.h b/proton-c/include/proton/event.h index c1c4fed..6f93cd4 100644 --- a/proton-c/include/proton/event.h +++ b/proton-c/include/proton/event.h @@ -351,18 +351,6 @@ typedef enum { /** - * The write side of the transport is closed, it will no longer produce bytes - * to write to external IO. Synonynm for PN_TRANSPORT_HEAD_CLOSED - */ -static const pn_event_type_t PN_TRANSPORT_WRITE_CLOSED = PN_TRANSPORT_HEAD_CLOSED; - -/** - * The read side of the transport is closed, it will no longer read bytes - * from external IO. Synonynm for PN_TRANSPORT_TAIL_CLOSED - */ -static const pn_event_type_t PN_TRANSPORT_READ_CLOSED = PN_TRANSPORT_TAIL_CLOSED; - -/** * Get a human readable name for an event type. * * @param[in] type an event type --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
