1 #ifndef _AX_EVENT_HANDLER_H_     2 #define _AX_EVENT_HANDLER_H_   119     const char *event_template,
 gboolean ax_event_handler_unsubscribe(AXEventHandler *event_handler, guint subscription, GError **error)
Unsubscribes from an event or a set of events. 
struct _AXEventHandler AXEventHandler
The AXEventHandler is an opaque data type used as an entry point into the event system. 
Definition: ax_event_handler.h:19
struct _AXEventKeyValueSet AXEventKeyValueSet
The AXEventKeyValueSet is an opaque data type required to create event declarations, event subscription and for receiving events. 
Definition: ax_event_key_value_set.h:73
void ax_event_handler_free(AXEventHandler *event_handler)
Destroys an AXEventHandler an deallocates all associated declarations and subscriptions. Any pending callbacks associated with the AXEventHandler will be cancelled. 
gboolean ax_event_handler_subscribe(AXEventHandler *event_handler, AXEventKeyValueSet *key_value_set, guint *subscription, AXSubscriptionCallback callback, gpointer user_data, GError **error)
Subscribes to an event or a set of events. 
struct _AXEvent AXEvent
The AXEvent is an opaque data type required to send and receive events. 
Definition: ax_event.h:30
void(* AXSubscriptionCallback)(guint subscription, AXEvent *event, gpointer user_data)
This is the prototype of the callback function called whenever an event matching a subscription is re...
Definition: ax_event_handler.h:33
gboolean ax_event_handler_declare_from_template(AXEventHandler *event_handler, const char *event_template, AXEventKeyValueSet *key_value_set, guint *declaration, AXDeclarationCompleteCallback callback, gpointer user_data, GError **error)
Declares a new event based upon an event template. 
gboolean ax_event_handler_send_event(AXEventHandler *event_handler, guint declaration, AXEvent *event, GError **error)
Sends an event. 
void(* AXDeclarationCompleteCallback)(guint declaration, gpointer user_data)
This is the prototype of the callback function called when a declaration has registered with the even...
Definition: ax_event_handler.h:47
gboolean ax_event_handler_undeclare(AXEventHandler *event_handler, guint declaration, GError **error)
Undeclares an event. Any pending callbacks associated with the declaration will be cancelled...
gboolean ax_event_handler_declare(AXEventHandler *event_handler, AXEventKeyValueSet *key_value_set, gboolean stateless, guint *declaration, AXDeclarationCompleteCallback callback, gpointer user_data, GError **error)
Declares a new event. 
AXEventHandler * ax_event_handler_new(void)
Creates a new AXEventHandler.