2005-11-07 09:45:58 -06:00
|
|
|
/********************************************************************
|
|
|
|
* gnc-event-p.h -- private engine event handling interface *
|
|
|
|
* Copyright 2000 Dave Peticolas <dave@krondo.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 2 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License*
|
|
|
|
* along with this program; if not, contact: *
|
|
|
|
* *
|
|
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
2005-11-16 23:35:02 -06:00
|
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
2005-11-07 09:45:58 -06:00
|
|
|
* *
|
|
|
|
********************************************************************/
|
|
|
|
|
2006-02-20 13:54:03 -06:00
|
|
|
#ifndef QOF_EVENT_P_H
|
|
|
|
#define QOF_EVENT_P_H
|
2005-11-07 09:45:58 -06:00
|
|
|
|
2006-02-20 13:54:03 -06:00
|
|
|
#include "qofevent.h"
|
2005-11-07 09:45:58 -06:00
|
|
|
#include "qofid.h"
|
|
|
|
|
2006-02-20 13:54:03 -06:00
|
|
|
/* for backwards compatibility - to be moved back to qofevent.c in libqof2 */
|
|
|
|
typedef struct
|
|
|
|
{
|
2009-09-18 14:40:57 -05:00
|
|
|
QofEventHandler handler;
|
|
|
|
gpointer user_data;
|
2006-02-20 13:54:03 -06:00
|
|
|
|
2009-09-18 14:40:57 -05:00
|
|
|
gint handler_id;
|
2006-02-20 13:54:03 -06:00
|
|
|
} HandlerInfo;
|
|
|
|
|
2005-11-07 09:45:58 -06:00
|
|
|
/* generates an event even when events are suspended! */
|
2007-04-01 17:18:50 -05:00
|
|
|
void qof_event_force (QofInstance *entity, QofEventId event_id, gpointer event_data);
|
2005-11-07 09:45:58 -06:00
|
|
|
|
|
|
|
#endif
|