]> git.tdb.fi Git - ext/subsurface.git/blobdiff - save-xml.c
Rename the project 'subsurface'
[ext/subsurface.git] / save-xml.c
index 91ead9f1d6d6eab18cdc093f559dedb1a8785408..42bd17e9faae65228fe6f759405c2e4da6731e91 100644 (file)
@@ -153,6 +153,8 @@ static void save_overview(FILE *f, struct dive *dive)
        save_temperatures(f, dive);
        show_duration(f, dive->surfacetime, "  <surfacetime>", "</surfacetime>\n");
        show_utf8(f, dive->location, "  <location>","</location>\n");
+       show_utf8(f, dive->divemaster, "  <divemaster>","</divemaster>\n");
+       show_utf8(f, dive->buddy, "  <buddy>","</buddy>\n");
        show_utf8(f, dive->notes, "  <notes>","</notes>\n");
 }
 
@@ -234,7 +236,7 @@ void save_dives(const char *filename)
        /* Flush any edits of current dives back to the dives! */
        update_dive(current_dive);
 
-       fprintf(f, "<dives>\n<program name='diveclog' version='%d'></program>\n", VERSION);
+       fprintf(f, "<dives>\n<program name='subsurface' version='%d'></program>\n", VERSION);
        for (i = 0; i < dive_table.nr; i++)
                save_dive(f, get_dive(i));
        fprintf(f, "</dives>\n");