2 #define PROTON_EVENT_H 1
28 #include <sys/types.h>
PN_EXTERN void pn_collector_free(pn_collector_t *collector)
Free a collector.
The connection has been bound to a transport.
Definition: event.h:100
PN_EXTERN const char * pn_event_type_name(pn_event_type_t type)
Get a human readable name for an event type.
Indicates that the both the head and tail of the transport are closed.
Definition: event.h:268
PN_EXTERN pn_collector_t * pn_collector(void)
Construct a collector.
Indicates that the tail of the transport has been closed.
Definition: event.h:262
The link has been freed and any outstanding processing has been completed.
Definition: event.h:229
PN_EXTERN pn_transport_t * pn_event_transport(pn_event_t *event)
Get the transport associated with an event.
PN_EXTERN const pn_class_t * pn_event_class(pn_event_t *event)
Get the class associated with the event context.
The remote endpoint has closed the link.
Definition: event.h:204
The local link endpoint has been closed.
Definition: event.h:198
struct pn_collector_t pn_collector_t
An event collector.
Definition: types.h:243
Defined as a programming convenience.
Definition: event.h:87
#define PN_EXTERN
Definition: import_export.h:53
The remote endpoint has closed the connection.
Definition: event.h:130
struct pn_event_t pn_event_t
An event provides notification of a state change within the protocol engine's object model...
Definition: event.h:77
The local connection endpoint has been closed.
Definition: event.h:124
PN_EXTERN pn_session_t * pn_event_session(pn_event_t *event)
Get the session associated with an event.
The remote endpoint has closed the session.
Definition: event.h:167
struct pn_delivery_t pn_delivery_t
An AMQP Delivery object.
Definition: types.h:231
PN_EXTERN pn_event_t * pn_collector_peek(pn_collector_t *collector)
Access the head event contained by a collector.
PN_EXTERN pn_link_t * pn_event_link(pn_event_t *event)
Get the link associated with an event.
PN_EXTERN pn_event_type_t pn_event_type(pn_event_t *event)
Get the type of an event.
pn_event_type_t
An event type.
Definition: event.h:82
The local link endpoint has been detached.
Definition: event.h:210
The local link endpoint has been opened.
Definition: event.h:186
The local session endpoint has been closed.
Definition: event.h:161
Indicates that a transport error has occurred.
Definition: event.h:248
The local connection endpoint has been closed.
Definition: event.h:112
The connection has been freed and any outstanding processing has been completed.
Definition: event.h:137
PN_EXTERN bool pn_collector_pop(pn_collector_t *collector)
Clear the head event on a collector.
The session has been created.
Definition: event.h:143
PN_EXTERN pn_event_t * pn_collector_put(pn_collector_t *collector, const pn_class_t *clazz, void *context, pn_event_type_t type)
Place a new event on a collector.
The remote endpoint has detached the link.
Definition: event.h:216
PN_EXTERN void * pn_event_context(pn_event_t *event)
Get the context associated with an event.
The transport has new data to read and/or write.
Definition: event.h:241
The remote endpoint has opened the link.
Definition: event.h:192
The remote endpoint has opened the session.
Definition: event.h:155
PN_EXTERN pn_connection_t * pn_event_connection(pn_event_t *event)
Get the connection associated with an event.
The connection has been created.
Definition: event.h:94
The session has been freed and any outstanding processing has been completed.
Definition: event.h:174
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition: types.h:111
struct pn_session_t pn_session_t
An AMQP Session object.
Definition: types.h:122
A delivery has been created or updated.
Definition: event.h:235
The remote endpoint has opened the connection.
Definition: event.h:118
The local session endpoint has been opened.
Definition: event.h:149
The link has been created.
Definition: event.h:180
The flow control state for a link has changed.
Definition: event.h:222
Indicates that the head of the transport has been closed.
Definition: event.h:255
struct pn_link_t pn_link_t
An AMQP Link object.
Definition: types.h:141
struct pn_transport_t pn_transport_t
An AMQP Transport object.
Definition: types.h:255
PN_EXTERN pn_delivery_t * pn_event_delivery(pn_event_t *event)
Get the delivery associated with an event.
The connection has been unbound from its transport.
Definition: event.h:106