X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fhb-xml.c;fp=src%2Fhb-xml.c;h=cc99d48e44cab33ca9d54a23b2e21e94d2d7ab53;hb=0e1e5f856e9ab5faa63fd822354781baccccbcd9;hp=ae3ea9b6635321de51c6416dae674d4b71733442;hpb=236cb5e47660876f46488ea8f76ecd5bebfa1fac;p=chaz%2Fhomebank diff --git a/src/hb-xml.c b/src/hb-xml.c index ae3ea9b..cc99d48 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" /****************************************************************************/ @@ -913,6 +915,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)) { @@ -1664,6 +1669,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(error) {