summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-31 11:08:36 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-31 12:01:03 +1100
commit8843ee61560fb3c6a66b7ae9f10367f57eddb109 (patch)
tree3ee4060565c6510b0ed198676a0255b045256f74 /dive.h
parent9099972c20a49a96a0abac2ff2c4b163b59c6883 (diff)
downloadsubsurface-8843ee61560fb3c6a66b7ae9f10367f57eddb109.tar.gz
Allow using two different tables to hold dives and gps locations
This only changes the infrastructure and actually loses functionality as it no longer does the simplistic "just treat the locations as dives and merge them". The new code that does something "smart" with the gps_location_table is yet to be written. But now we can use the XML parser to put the gps locations downloaded from the webservice into their own data structure. In the process I noticed that we never used the two delete functions in parse-xml.c and removed them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/dive.h b/dive.h
index 4132d0c30..2f4dcbd9e 100644
--- a/dive.h
+++ b/dive.h
@@ -469,7 +469,7 @@ static inline struct dive *get_dive_by_diveid(int diveid, int deviceid)
extern int match_one_dc(struct divecomputer *a, struct divecomputer *b);
extern void parse_xml_init(void);
-extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error);
+extern void parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, GError **error);
extern void parse_xml_exit(void);
extern void set_filename(const char *filename, gboolean force);
@@ -500,7 +500,6 @@ extern void utc_mkdate(timestamp_t, struct tm *tm);
extern struct dive *alloc_dive(void);
extern void record_dive(struct dive *dive);
-extern void delete_dive(struct dive *dive);
extern struct sample *prepare_sample(struct divecomputer *dc);
extern void finish_sample(struct divecomputer *dc);