diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-09 12:07:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-09 16:19:38 -0800 |
commit | ec38d3708df24a23a46f19707f0f5afd44969c92 (patch) | |
tree | e41066bcc58df363d4c8f241279a95558e5a79ca /save-xml.c | |
parent | 33c67cc61960545216e31fa2c420cdac94da03f0 (diff) | |
download | subsurface-ec38d3708df24a23a46f19707f0f5afd44969c92.tar.gz |
Move device_info handling into a new 'device.c' file
The legacy nickname wrappers (that use the device_info structure) are
left in gtk-gui.c. We can slowly start moving away from them, we don't
want to start exporting that thing as some kind of generic interface.
This isn't a pure code movement - because we leave the legacy interfaces
alone, there are a few new interfaces in device.c (like "create a new
device_info entry") that were embedded into the legacy "create nickname"
code, and needed to be abstracted out.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c index 7b5cd2b10..465010cd1 100644 --- a/save-xml.c +++ b/save-xml.c @@ -6,6 +6,7 @@ #include <time.h> #include "dive.h" +#include "device.h" static void show_milli(FILE *f, const char *pre, int value, const char *unit, const char *post) { @@ -524,7 +525,7 @@ void save_dives(const char *filename) fprintf(f, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION); /* save the dive computer nicknames, if any */ - clear_dc_saved_status(); + clear_device_saved_status(); for_each_dive(i, dive) { struct divecomputer *dc = &dive->dc; while (dc) { |