summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 894a8183a..bcaeda9d2 100644
--- a/dive.h
+++ b/dive.h
@@ -614,6 +614,11 @@ static inline struct dive *getDiveById(int id)
}
return dive;
}
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern struct dive *find_dive_including(timestamp_t when);
extern bool dive_within_time_range(struct dive *dive, timestamp_t when, timestamp_t offset);
struct dive *find_dive_n_near(timestamp_t when, int n, timestamp_t offset);
@@ -692,6 +697,10 @@ extern void set_dc_nickname(struct dive *dive);
extern void set_autogroup(bool value);
extern int total_weight(struct dive *);
+#ifdef __cplusplus
+}
+#endif
+
#define DIVE_ERROR_PARSE 1
#define DIVE_ERROR_PLAN 2