mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move events and samples into a 'struct divecomputer'
For now we only have one fixed divecomputer associated with each dive, so this doesn't really change any current semantics. But it will make it easier for us to associate a dive with multiple dive computers. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a9786564c2
commit
25b4fee655
9 changed files with 144 additions and 144 deletions
|
@ -372,9 +372,9 @@ static void save_dive(FILE *f, struct dive *dive)
|
|||
save_overview(f, dive);
|
||||
save_cylinder_info(f, dive);
|
||||
save_weightsystem_info(f, dive);
|
||||
save_events(f, dive->events);
|
||||
for (i = 0; i < dive->samples; i++)
|
||||
save_sample(f, dive->sample+i);
|
||||
save_events(f, dive->dc.events);
|
||||
for (i = 0; i < dive->dc.samples; i++)
|
||||
save_sample(f, dive->dc.sample+i);
|
||||
fprintf(f, "</dive>\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue