diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-21 14:10:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-21 16:07:24 -0700 |
commit | 44a291a09f06733ff84dc99d532351d6cbc927c6 (patch) | |
tree | b905d21f3a9a1b369b45370ea76b5b48819545e6 /core/dive.h | |
parent | fe7c0b30856d1286ea9a521ca9fb01e4952b6275 (diff) | |
download | subsurface-44a291a09f06733ff84dc99d532351d6cbc927c6.tar.gz |
Export: move dive site selection logic to C++
When exporting dive sites, the dive sites to be selected were collected
in the C-core. But that doesn't have access to the selected dive sites
if in dive site mode. Therefore, collect the dive sites in C++ and
pass down to the core. Use a std::vector to avoid memory management
woes.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h index 72928c5ec..517c18c8b 100644 --- a/core/dive.h +++ b/core/dive.h @@ -304,7 +304,7 @@ extern int save_dives_logic(const char *filename, bool select_only, bool anonymi 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); -extern int save_dive_sites_logic(const char *filename, bool select_only, bool anonymize); +extern int save_dive_sites_logic(const char *filename, const struct dive_site *sites[], int nr_sites, bool anonymize); struct membuffer; extern void save_one_dive_to_mb(struct membuffer *b, struct dive *dive, bool anonymize); |