diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 11:08:36 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 12:01:03 +1100 |
commit | 8843ee61560fb3c6a66b7ae9f10367f57eddb109 (patch) | |
tree | 3ee4060565c6510b0ed198676a0255b045256f74 /file.c | |
parent | 9099972c20a49a96a0abac2ff2c4b163b59c6883 (diff) | |
download | subsurface-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 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ static void parse_file_buffer(const char *filename, struct memblock *mem, GError if (fmt && open_by_filename(filename, fmt+1, mem, error)) return; - parse_xml_buffer(filename, mem->buffer, mem->size, error); + parse_xml_buffer(filename, mem->buffer, mem->size, &dive_table, error); } void parse_file(const char *filename, GError **error, gboolean possible_default_filename) |