31 #ifndef IO_GNCXML_V2_H 32 #define IO_GNCXML_V2_H 68 #define GNC_FILE_BACKEND "gnc:file:2" 69 #define GNC_FILE_BACKEND_VERS 2 82 } gnc_template_xaction_data;
85 gboolean qof_session_load_from_xml_file_v2 (
GncXmlBackend*, QofBook*,
89 gboolean gnc_book_write_to_xml_filehandle_v2 (QofBook* book, FILE* fh);
90 gboolean gnc_book_write_to_xml_file_v2 (QofBook* book,
const char* filename,
94 gboolean gnc_book_write_accounts_to_xml_filehandle_v2 (
QofBackend* be,
95 QofBook* book, FILE* fh);
96 gboolean gnc_book_write_accounts_to_xml_file_v2 (
QofBackend* be, QofBook* book,
97 const char* filename);
102 QofBookFileType gnc_is_xml_data_file_v2 (
const gchar* name,
103 gboolean* with_encoding);
108 gboolean gnc_xml2_write_namespace_decl (FILE* out,
const char* name_space);
146 const gchar* filename, GList* encodings, GHashTable** unique,
147 GHashTable** ambiguous, GList** impossible);
161 const char * type_name;
163 sixtp * (*create_parser) (void);
164 gboolean (*add_item)(
sixtp_gdv2 *, gpointer obj);
165 int (*get_count) (QofBook *);
166 gboolean (*write) (FILE*, QofBook*);
167 void (*scrub) (QofBook *);
168 gboolean (*ns) (FILE*);
171 void gnc_xml_register_backend(GncXmlDataType_t&);
GList TransList
GList of Transaction.
gboolean gnc_xml2_parse_with_subst(GncXmlBackend *xml_be, QofBook *book, GHashTable *subst)
Parse a file in push mode, but replace byte sequences in the file given a hash table of substitutions...
All type declarations for the whole Gnucash engine.
GList AccountList
GList of Account.
gint gnc_xml2_find_ambiguous(const gchar *filename, GList *encodings, GHashTable **unique, GHashTable **ambiguous, GList **impossible)
Read a file as plain byte stream to find words that are not completely ASCII.
load and save data to files