|
GnuCash 2.4.99
|
load and save data to XML files More...
#include "config.h"#include <glib.h>#include <glib/gi18n.h>#include <glib/gstdio.h>#include <libintl.h>#include <locale.h>#include <fcntl.h>#include <limits.h>#include <sys/stat.h>#include <sys/types.h>#include <regex.h>#include <errno.h>#include <string.h>#include <time.h>#include "platform.h"#include "qof.h"#include "TransLog.h"#include "gnc-engine.h"#include "gnc-uri-utils.h"#include "io-gncxml.h"#include "io-gncxml-v2.h"#include "gnc-backend-xml.h"#include "gnc-gconf-utils.h"#include "gnc-address-xml-v2.h"#include "gnc-bill-term-xml-v2.h"#include "gnc-customer-xml-v2.h"#include "gnc-employee-xml-v2.h"#include "gnc-entry-xml-v2.h"#include "gnc-invoice-xml-v2.h"#include "gnc-job-xml-v2.h"#include "gnc-order-xml-v2.h"#include "gnc-owner-xml-v2.h"#include "gnc-tax-table-xml-v2.h"#include "gnc-vendor-xml-v2.h"#include "strptime.h"Go to the source code of this file.
Defines | |
| #define | KEY_FILE_COMPRESSION "file_compression" |
| #define | KEY_RETAIN_TYPE "retain_type" |
| #define | KEY_RETAIN_DAYS "retain_days" |
| #define | XML_URI_PREFIX "xml://" |
| #define | FILE_URI_PREFIX "file://" |
| #define | buf_size 1024 |
Functions | |
| G_MODULE_EXPORT void | qof_backend_module_init (void) |
| void | gnc_module_init_backend_xml (void) |
load and save data to XML files
This file implements the top-level QofBackend API for saving/ restoring data to/from an ordinary Unix filesystem file.
Definition in file gnc-backend-xml.c.
| void gnc_module_init_backend_xml | ( | void | ) |
Initialization function which can be used when this module is statically linked into the application.
Definition at line 1357 of file gnc-backend-xml.c.
{
QofBackendProvider *prov;
prov = g_new0 (QofBackendProvider, 1);
prov->provider_name = "GnuCash File Backend Version 2";
prov->access_method = "file";
prov->partial_book_supported = FALSE;
prov->backend_new = gnc_backend_new;
prov->provider_free = gnc_provider_free;
prov->check_data_type = gnc_determine_file_type;
qof_backend_register_provider (prov);
prov = g_new0 (QofBackendProvider, 1);
prov->provider_name = "GnuCash File Backend Version 2";
prov->access_method = "xml";
prov->partial_book_supported = FALSE;
prov->backend_new = gnc_backend_new;
prov->provider_free = gnc_provider_free;
prov->check_data_type = gnc_determine_file_type;
qof_backend_register_provider (prov);
/* And the business objects */
business_core_xml_init();
}
| G_MODULE_EXPORT void qof_backend_module_init | ( | void | ) |
This is the standarized initialization function of a qof_backend GModule, but compiling this can be disabled by defining GNC_NO_LOADABLE_MODULES.
Definition at line 1350 of file gnc-backend-xml.c.
{
gnc_module_init_backend_xml();
}
1.7.4