summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-09-10 14:47:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-13 08:16:54 -0700
commitafe363fa8569c0634e5bc20dc54c204533a638d7 (patch)
tree556d189afc6fb2a9c2c9573345ade233635dffe8 /core/dive.h
parentadbb1488e8ae3ff06983c11f954d6079cfc48cce (diff)
downloadsubsurface-afe363fa8569c0634e5bc20dc54c204533a638d7.tar.gz
Optional anonymization upon export
Add a checkbox that triggers replacement of all English characters by x's in notes, buddy, dive guide and (while we are at it) suit. This is ment for people sharing logs for debugging that are concious about privacy issues. It leaves the lenth of strings in tact as well as special charcters as those might be needed to track down a particular parsing problem. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/dive.h b/core/dive.h
index dd3bbc6a8..277050f5e 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -511,12 +511,12 @@ extern int parse_seabear_log(const char *filename);
extern int parse_txt_file(const char *filename, const char *csv);
extern int parse_manual_file(const char *filename, char **params, int pnr);
extern int save_dives(const char *filename);
-extern int save_dives_logic(const char *filename, bool select_only);
-extern int save_dive(FILE *f, struct dive *dive);
-extern int export_dives_xslt(const char *filename, const bool selected, const int units, const char *export_xslt);
+extern int save_dives_logic(const char *filename, bool select_only, bool anonymize);
+extern int save_dive(FILE *f, struct dive *dive, bool anonymize);
+extern int export_dives_xslt(const char *filename, const bool selected, const int units, const char *export_xslt, bool anonymize);
struct membuffer;
-extern void save_one_dive_to_mb(struct membuffer *b, struct dive *dive);
+extern void save_one_dive_to_mb(struct membuffer *b, struct dive *dive, bool anonymize);
int cylinderuse_from_text(const char *text);