GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
gnc-backend-xml.h File Reference

load and save data to files More...

#include "qof.h"
#include <gmodule.h>
#include "qofbackend-p.h"

Go to the source code of this file.

Data Structures

struct  FileBackend_struct
 

Typedefs

typedef struct FileBackend_struct FileBackend
 

Enumerations

enum  XMLFileRetentionType { XML_RETAIN_NONE, XML_RETAIN_DAYS, XML_RETAIN_ALL }
 
enum  QofBookFileType {
  GNC_BOOK_NOT_OURS, GNC_BOOK_BIN_FILE, GNC_BOOK_XML1_FILE, GNC_BOOK_XML2_FILE,
  GNC_BOOK_XML2_FILE_NO_ENCODING, GNC_BOOK_POST_XML2_0_0_FILE
}
 

Functions

void gnc_module_init_backend_xml (void)
 
G_MODULE_EXPORT void qof_backend_module_init (void)
 

Detailed Description

load and save data to files

Author
Copyright (c) 2000 Gnumatic Inc.
Copyright (c) 2002 Derek Atkins warlo.nosp@m.rd@M.nosp@m.IT.ED.nosp@m.U
Copyright (c) 2003 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g

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.h.

Function Documentation

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 1299 of file gnc-backend-xml.c.

1300 {
1301  QofBackendProvider *prov;
1302  prov = g_new0 (QofBackendProvider, 1);
1303  prov->provider_name = "GnuCash File Backend Version 2";
1304  prov->access_method = "file";
1305  prov->backend_new = gnc_backend_new;
1306  prov->provider_free = gnc_provider_free;
1307  prov->check_data_type = gnc_determine_file_type;
1309 
1310  prov = g_new0 (QofBackendProvider, 1);
1311  prov->provider_name = "GnuCash File Backend Version 2";
1312  prov->access_method = "xml";
1313  prov->backend_new = gnc_backend_new;
1314  prov->provider_free = gnc_provider_free;
1315  prov->check_data_type = gnc_determine_file_type;
1317 
1318  /* And the business objects */
1319  business_core_xml_init();
1320 }
QofBackend *(* backend_new)(void)
Definition: qofbackend-p.h:255
void(* provider_free)(QofBackendProvider *)
Definition: qofbackend-p.h:275
void qof_backend_register_provider(QofBackendProvider *)
gboolean(* check_data_type)(const char *)
Distinguish two providers with same access method.
Definition: qofbackend-p.h:272
const char * provider_name
Definition: qofbackend-p.h:242
const char * access_method
Definition: qofbackend-p.h:248
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. This one simply calls gnc_module_init_backend_file().

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 1988 of file gnc-backend-dbi.c.

1989 {
1991 }
void gnc_module_init_backend_dbi(void)