GnuCash c935c2f+
Loading...
Searching...
No Matches
io-gncxml.h
Go to the documentation of this file.
1/********************************************************************\
2 * io-gncxml.h -- api for gnucash xml i/o *
3 * *
4 * Copyright (c) 2000,2001 Gnumatic Incorporated *
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
33#ifndef IO_GNCXML_H
34#define IO_GNCXML_H
35
36#include <glib.h>
37#include "qof.h"
38
39#ifdef __cplusplus
40extern "C"
41{
42
43#endif
44/* FIXME: eventually, we probably need to add an error stack
45 accessible via gnc_book_get_xml_io_error() a la binfile. */
46
48gboolean qof_session_load_from_xml_file (QofBook*, const char* filename);
49
53gboolean gnc_is_xml_data_file (const gchar* name);
54
55#ifdef __cplusplus
56}
57#endif
58#endif /* IO_GNCXML_H */
gboolean gnc_is_xml_data_file(const gchar *name)
The is_gncxml_file() routine checks to see if the first few chars of the file look like gnc-xml data.
gboolean qof_session_load_from_xml_file(QofBook *, const char *filename)
Read in an account group from a file.
QofBook reference.
Definition qofbook-p.hpp:47