58 #define QOF_MAKE_EVENT(x) (1<<(x)) 62 #define QOF_EVENT_BASE 8 72 #define QOF_EVENT_NONE (0) 73 #define QOF_EVENT_CREATE QOF_MAKE_EVENT(0) 74 #define QOF_EVENT_MODIFY QOF_MAKE_EVENT(1) 75 #define QOF_EVENT_DESTROY QOF_MAKE_EVENT(2) 76 #define QOF_EVENT_ADD QOF_MAKE_EVENT(3) 77 #define QOF_EVENT_REMOVE QOF_MAKE_EVENT(4) 78 #define QOF_EVENT__LAST QOF_MAKE_EVENT(QOF_EVENT_BASE-1) 79 #define QOF_EVENT_ALL (0xff) 90 gpointer handler_data, gpointer event_data);
129 gpointer event_data);
void(* QofEventHandler)(QofInstance *ent, QofEventId event_type, gpointer handler_data, gpointer event_data)
Handler invoked when an event is generated.
gint qof_event_register_handler(QofEventHandler handler, gpointer handler_data)
Register a handler for events.
gint QofEventId
Define the type of events allowed.
void qof_event_unregister_handler(gint handler_id)
Unregister an event handler.
void qof_event_suspend(void)
Suspend all engine events.
void qof_event_resume(void)
Resume engine event generation.
void qof_event_gen(QofInstance *entity, QofEventId event_type, gpointer event_data)
Invoke all registered event handlers using the given arguments.