GnuCash  5.6-150-g038405b370+
gnc-backend-xml.h
Go to the documentation of this file.
1 /********************************************************************
2  * gnc-backend-xml.h: load and save data to XML files *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA gnu@gnu.org *
20 \********************************************************************/
31 #ifndef GNC_BACKEND_XML_H_
32 #define GNC_BACKEND_XML_H_
33 
34 #include <qof.h>
35 #include <gmodule.h>
36 
37 typedef enum
38 {
39  XML_RETAIN_NONE,
40  XML_RETAIN_DAYS,
41  XML_RETAIN_ALL
42 }
43 XMLFileRetentionType;
44 
45 typedef enum
46 {
47  GNC_BOOK_NOT_OURS,
48  GNC_BOOK_BIN_FILE,
49  GNC_BOOK_XML1_FILE,
50  GNC_BOOK_XML2_FILE,
51  GNC_BOOK_XML2_FILE_NO_ENCODING,
52  GNC_BOOK_POST_XML2_0_0_FILE
53 } QofBookFileType;
54 
55 #ifdef __cplusplus
56 extern "C"
57 {
58 #endif
59 
61 void gnc_module_init_backend_xml (void);
62 
63 #ifndef GNC_NO_LOADABLE_MODULES
64 
68 G_MODULE_EXPORT
69 void qof_backend_module_init (void);
70 #endif
71 #ifdef __cplusplus
72 }
73 #include <qof-backend.hpp>
74 #endif
75 #endif /* GNC_BACKEND_XML_H_ */
void gnc_module_init_backend_xml(void)
Initialization function which can be used when this module is statically linked into the application...
G_MODULE_EXPORT void qof_backend_module_init(void)
This is the standardized initialization function of a qof_backend GModule, but compiling this can be ...