GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qofevent-p.h
1 /********************************************************************
2  * gnc-event-p.h -- private engine event handling interface *
3  * Copyright 2000 Dave Peticolas <[email protected]> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21  * *
22  ********************************************************************/
23 
24 #ifndef QOF_EVENT_P_H
25 #define QOF_EVENT_P_H
26 
27 #include "qofevent.h"
28 #include "qofid.h"
29 
30 /* for backwards compatibility - to be moved back to qofevent.c in libqof2 */
31 typedef struct
32 {
33  QofEventHandler handler;
34  gpointer user_data;
35 
36  gint handler_id;
37 } HandlerInfo;
38 
39 /* generates an event even when events are suspended! */
40 void qof_event_force (QofInstance *entity, QofEventId event_id, gpointer event_data);
41 
42 #endif
QOF event handling interface.
void(* QofEventHandler)(QofInstance *ent, QofEventId event_type, gpointer handler_data, gpointer event_data)
Handler invoked when an event is generated.
Definition: qofevent.h:89
QOF entity type identification system.
gint QofEventId
Definition: qofevent.h:45