X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fhb-xml.c;h=da67dad488e9b9a95a3c5b901d6140914e56736b;hb=35b9973e4de7d69ad8841ead996a2e6cf1d85f08;hp=c55db990e29686e604b2033b1dd9e39fcb0b280d;hpb=d11c8dd3275ed2a4a35598e69c0804dcf9435766;p=chaz%2Fhomebank diff --git a/src/hb-xml.c b/src/hb-xml.c index c55db99..da67dad 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" + #include "ui-dialogs.h" /****************************************************************************/ @@ -877,6 +879,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)) { @@ -1600,6 +1605,9 @@ gchar *outstr; gint retval = XML_OK; GError *error = NULL; + GValue filename_val = G_VALUE_INIT; + ext_hook("save_file", EXT_STRING(&filename_val, filename), NULL); + io = g_io_channel_new_file(filename, "w", &error); if(io == NULL) {