QOF  0.8.7
qofevent-p.h
00001 /********************************************************************
00002  * qofevent-p.h -- private engine event handling interface          *
00003  * Copyright 2000 Dave Peticolas <dave@krondo.com>                  *
00004  * Copyright 2008 Neil Williams <linux@codehelp.co.uk>              *
00005  *                                                                  *
00006  * This program is free software; you can redistribute it and/or    *
00007  * modify it under the terms of the GNU General Public License as   *
00008  * published by the Free Software Foundation; either version 2 of   *
00009  * the License, or (at your option) any later version.              *
00010  *                                                                  *
00011  * This program is distributed in the hope that it will be useful,  *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00014  * GNU General Public License for more details.                     *
00015  *                                                                  *
00016  * You should have received a copy of the GNU General Public License*
00017  * along with this program; if not, contact:                        *
00018  *                                                                  *
00019  * Free Software Foundation           Voice:  +1-617-542-5942       *
00020  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00021  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00022  *                                                                  *
00023  ********************************************************************/
00024 
00025 #ifndef QOF_EVENT_P_H
00026 #define QOF_EVENT_P_H
00027 
00028 #include "qofevent.h"
00029 #include "qofid.h"
00030 
00031 /* for backwards compatibility - to be moved back to qofevent.c in libqof2 */
00032 typedef struct
00033 {
00034     QofEventHandler handler;
00035     gpointer user_data;
00036 
00037     gint handler_id;
00038 } HandlerInfo;
00039 
00044 void
00045 qof_event_generate (const GUID * guid, QofIdType e_type, QofEventId event_id);
00046 
00047 /* generates an event even when events are suspended! */
00048 void qof_event_force (QofEntity * entity, QofEventId event_id,
00049                       gpointer event_data);
00050 
00051 #endif