31 #ifndef IO_GNCXML_V2_H
32 #define IO_GNCXML_V2_H
49 int commodities_total;
50 int commodities_loaded;
52 int transactions_total;
53 int transactions_loaded;
58 int schedXactions_total;
59 int schedXactions_loaded;
66 typedef void (*countCallbackFn)(
sixtp_gdv2 *gd,
const char *type);
71 countCallbackFn countCallback;
99 #define GNC_FILE_BACKEND "gnc:file:2"
100 #define GNC_FILE_BACKEND_VERS 2
104 const char * type_name;
106 sixtp * (*create_parser) (void);
107 gboolean (*add_item)(
sixtp_gdv2 *, gpointer obj);
109 gboolean (*write) (FILE*,
QofBook*);
111 gboolean (*ns) (FILE*);
134 gboolean gnc_book_write_to_xml_filehandle_v2(
QofBook *book, FILE *fh);
135 gboolean gnc_book_write_to_xml_file_v2(
QofBook *book,
const char *filename, gboolean compress);
140 const char *filename);
181 const gchar *filename, GList *encodings, GHashTable **unique,
182 GHashTable **ambiguous, GList **impossible);
gboolean qof_session_load_from_xml_file_v2(FileBackend *, QofBook *, QofBookFileType)
gboolean gnc_book_write_accounts_to_xml_filehandle_v2(QofBackend *be, QofBook *book, FILE *fh)
gboolean gnc_xml2_parse_with_subst(FileBackend *fbe, QofBook *book, GHashTable *subst)
void(* QofBePercentageFunc)(const char *message, double percent)
DOCUMENT ME!
QofBookFileType gnc_is_xml_data_file_v2(const gchar *name, gboolean *with_encoding)
All type declarations for the whole Gnucash engine.
gint gnc_xml2_find_ambiguous(const gchar *filename, GList *encodings, GHashTable **unique, GHashTable **ambiguous, GList **impossible)
gboolean gnc_xml2_write_namespace_decl(FILE *out, const char *name_space)
load and save data to files
void run_callback(sixtp_gdv2 *data, const char *type)