X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fhb-xml.c;h=9db1e3014744c1f69aaddddcae19eebeee4c6665;hb=5b7b5519d955cd0c99d094ba140514e0a2b73083;hp=d859c3510c8353ea9e7c6b90967382a2d61d04d0;hpb=8988b3bef0760b4cab8144715cc3d8f55688861c;p=chaz%2Fhomebank diff --git a/src/hb-xml.c b/src/hb-xml.c index d859c35..9db1e30 100644 --- a/src/hb-xml.c +++ b/src/hb-xml.c @@ -23,6 +23,8 @@ #include "hb-transaction.h" #include "hb-xml.h" +#include "ext.h" + /****************************************************************************/ /* Debug macros */ /****************************************************************************/ @@ -427,6 +429,9 @@ gboolean rc; DB( g_print("\n[hb-xml] homebank_load_xml\n") ); + GValue filename_val = G_VALUE_INIT; + ext_hook("load_file", EXT_STRING(&filename_val, filename), NULL); + retval = XML_OK; if (!g_file_get_contents (filename, &buffer, &length, &error)) { @@ -1186,6 +1191,9 @@ char buf1[G_ASCII_DTOSTR_BUF_SIZE]; gchar *outstr; gint retval = XML_OK; + GValue filename_val = G_VALUE_INIT; + ext_hook("save_file", EXT_STRING(&filename_val, filename), NULL); + io = g_io_channel_new_file(filename, "w", NULL); if(io == NULL) {