]> Dogcows Code - chaz/homebank/blobdiff - src/hb-xml.c
Merge branch 'master' into ext-perl
[chaz/homebank] / src / hb-xml.c
index 2338e581857133d5402597ec6a0a280fc62ced50..6476fd8e0c3f327a009d1b4cef851ebfbf2ab712 100644 (file)
@@ -1,5 +1,5 @@
 /*  HomeBank -- Free, easy, personal accounting for everyone.
- *  Copyright (C) 1995-2016 Maxime DOYEN
+ *  Copyright (C) 1995-2017 Maxime DOYEN
  *
  *  This file is part of HomeBank.
  *
@@ -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)
        {
This page took 0.023908 seconds and 4 git commands to generate.