summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-09 21:50:16 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-09 21:50:16 +0900
commita2afe4128082b603add2b2be83f97ff78e0d0169 (patch)
tree7ffc495137a6c1179a67e107a671ce8e6f7abb9b /dive.h
parentffd3b8591dcb4b22dc318b6a39bb4e2ac8140f42 (diff)
downloadsubsurface-a2afe4128082b603add2b2be83f97ff78e0d0169.tar.gz
A file that we import should never become the default file we save to
Only files that are opened should be considered r/w. Files that are imported should be treated as if they were r/o. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dive.h b/dive.h
index 2c224a12d..42c09b581 100644
--- a/dive.h
+++ b/dive.h
@@ -344,11 +344,12 @@ static inline struct dive *get_dive(int nr)
for ((_i) = 0; ((_x) = get_dive(_i)) != NULL; (_i)++)
extern void parse_xml_init(void);
-extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error);
+extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error,
+ gboolean possible_default_filename);
extern void parse_xml_exit(void);
extern void set_filename(const char *filename, gboolean force);
-extern void parse_file(const char *filename, GError **error);
+extern void parse_file(const char *filename, GError **error, gboolean possible_default_filename);
#ifdef XSLT
extern xmlDoc *test_xslt_transforms(xmlDoc *doc);