aboutsummaryrefslogtreecommitdiffstats
path: root/core/selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/selection.h')
-rw-r--r--core/selection.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/selection.h b/core/selection.h
new file mode 100644
index 000000000..0fb226949
--- /dev/null
+++ b/core/selection.h
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0
+// Selection related functions
+
+#ifndef SELECTION_H
+#define SELECTION_H
+
+/*** C++-only functions ***/
+
+#ifdef __cplusplus
+#include <vector>
+
+struct dive;
+
+// Reset the selection to the dives of the "selection" vector and send the appropriate signals.
+// Set the current dive to "currentDive". "currentDive" must be an element of "selection" (or
+// null if "seletion" is empty).
+void setSelection(const std::vector<dive *> &selection, dive *currentDive);
+
+// Get currently selectd dives
+std::vector<dive *> getDiveSelection();
+
+#endif // __cplusplus
+
+#endif // SELECTION_H