From afe363fa8569c0634e5bc20dc54c204533a638d7 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 10 Sep 2018 14:47:56 +0200 Subject: 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 --- core/dive.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/dive.h') 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); -- cgit v1.2.3-70-g09d2