GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-event.h
Go to the documentation of this file.
1 /********************************************************************
2  * gnc-event.h -- engine-level events for Gnucash *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20  * *
21  ********************************************************************/
22 
30 #ifndef GNC_EVENT_H
31 #define GNC_EVENT_H
32 
33 #include <glib.h>
34 #include "qof.h"
35 
36 typedef struct
37 {
38  gpointer node;
39  gint idx;
40 } GncEventData;
41 
45 #define GNC_EVENT_ITEM_ADDED QOF_MAKE_EVENT(QOF_EVENT_BASE+0)
46 #define GNC_EVENT_ITEM_REMOVED QOF_MAKE_EVENT(QOF_EVENT_BASE+1)
47 #define GNC_EVENT_ITEM_CHANGED QOF_MAKE_EVENT(QOF_EVENT_BASE+2)
48 
51 const char* qofeventid_to_string(QofEventId id);
52 
53 #endif
54 
const char * qofeventid_to_string(QofEventId id)
Definition: gnc-event.c:4
gint QofEventId
Definition: qofevent.h:45