GnuCash c935c2f+
Loading...
Searching...
No Matches
io-gncxml-gen.h
1/********************************************************************\
2 * gnc-xml-gen.h -- api for gnucash xml i/o *
3 * *
4 * Copyright (C) 2001 James LewisMoss <dres@debian.org> *
5 * *
6 * This program is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU General Public License as *
8 * published by the Free Software Foundation; either version 2 of *
9 * the License, or (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License*
17 * along with this program; if not, contact: *
18 * *
19 * Free Software Foundation Voice: +1-617-542-5942 *
20 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21 * Boston, MA 02110-1301, USA gnu@gnu.org *
22 * *
23\********************************************************************/
24
25#ifndef IO_GNCXML_GEN_H
26#define IO_GNCXML_GEN_H
27
28#include <glib.h>
29
30#include "sixtp.h"
31
32typedef gboolean (*gxpf_callback) (const char* tag, gpointer parsedata,
33 gpointer data);
34
36{
37 gxpf_callback cb;
38 gpointer parsedata;
39 gpointer bookdata;
40};
41
42typedef struct gxpf_data_struct gxpf_data;
43
44gboolean
45gnc_xml_parse_file (sixtp* top_parser, const char* filename,
46 gxpf_callback callback, gpointer parsedata,
47 gpointer bookdata);
48
49gboolean
50gnc_xml_parse_fd (sixtp* top_parser, FILE* fd,
51 gxpf_callback callback, gpointer parsedata,
52 gpointer bookdata);
53
54#endif /* IO_GNCXML_GEN_H */
Definition sixtp.h:130