X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fhb-xml.c;h=68768faf5449f7d30bf2ddfb6ec9f2270796ec0a;hb=613fd4014fa5814bf2adce50574d520df8927ce1;hp=2338e581857133d5402597ec6a0a280fc62ced50;hpb=59c5e08a64798d4303ae7eb3a2713bc93d98fa7b;p=chaz%2Fhomebank diff --git a/src/hb-xml.c b/src/hb-xml.c index 2338e58..68768fa 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" /****************************************************************************/ @@ -836,6 +838,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)) { @@ -1547,6 +1552,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) {