2001-05-09 18:03:36 -05:00
|
|
|
/********************************************************************\
|
|
|
|
* io-gncxml.h -- api for gnucash xml i/o *
|
|
|
|
* *
|
|
|
|
* Copyright (c) 2000,2001 Gnumatic Incorporated *
|
|
|
|
* *
|
|
|
|
* 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 *
|
2001-05-09 18:03:36 -05:00
|
|
|
* *
|
|
|
|
\********************************************************************/
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
/**
|
2003-08-09 14:24:05 -05:00
|
|
|
* @file io-gncxml.h
|
2005-11-01 21:32:36 -06:00
|
|
|
* @brief api for Version 1 XML-based file format
|
2001-01-05 23:01:46 -06:00
|
|
|
*
|
2003-08-09 14:24:05 -05:00
|
|
|
* Initial code by Rob L. Browning 4Q 2000
|
2001-02-07 22:08:50 -06:00
|
|
|
* Tuneups by James LewisMoss Dec 2000
|
2000-12-13 15:15:53 -06:00
|
|
|
*/
|
2001-05-09 18:03:36 -05:00
|
|
|
|
2001-07-03 01:49:39 -05:00
|
|
|
#ifndef IO_GNCXML_H
|
|
|
|
#define IO_GNCXML_H
|
2015-06-14 14:45:36 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
2000-10-23 04:41:51 -05:00
|
|
|
|
|
|
|
#include <glib.h>
|
2005-11-21 13:31:44 -06:00
|
|
|
#include "qof.h"
|
2000-10-23 04:41:51 -05:00
|
|
|
|
2001-02-24 18:42:44 -06:00
|
|
|
/* FIXME: eventually, we probably need to add an error stack
|
2017-01-16 16:03:50 -06:00
|
|
|
accessible via gnc_book_get_xml_io_error() a la binfile. */
|
2001-02-24 18:42:44 -06:00
|
|
|
|
2003-08-09 14:24:05 -05:00
|
|
|
/** Read in an account group from a file */
|
2016-03-12 16:04:40 -06:00
|
|
|
gboolean qof_session_load_from_xml_file (QofBook*, const char* filename);
|
2001-02-24 18:42:44 -06:00
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
/** The is_gncxml_file() routine checks to see if the first few
|
2001-02-24 18:42:44 -06:00
|
|
|
* chars of the file look like gnc-xml data.
|
|
|
|
*/
|
2016-03-12 16:04:40 -06:00
|
|
|
gboolean gnc_is_xml_data_file (const gchar* name);
|
2009-12-29 14:12:48 -06:00
|
|
|
|
2015-06-14 14:45:36 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2001-07-03 01:49:39 -05:00
|
|
|
#endif /* IO_GNCXML_H */
|