Rename 'cylinder.c' as 'equipment.c'

Make it about general equipment management, and start hooking up
functions to show new equipment information when changing dives (and to
flush changes to equipment information for the previously active dive).

Nothing is hooked up yet, and it's now showing just one (really big)
cylinder choice, so this is all broken.  But it should make it possible
to at least get somewhere some day.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-09 17:10:17 -07:00
parent 41bce9e5f4
commit 067506038a
7 changed files with 47 additions and 31 deletions

7
dive.h
View file

@ -175,7 +175,12 @@ static inline struct dive *get_dive(unsigned int nr)
extern void parse_xml_init(void);
extern void parse_xml_file(const char *filename, GError **error);
extern void flush_dive_info_changes(void);
extern void show_dive_info(struct dive *);
extern void flush_dive_info_changes(struct dive *);
extern void show_dive_equipment(struct dive *);
extern void flush_dive_equipment_changes(struct dive *);
extern void save_dives(const char *filename);
static inline unsigned int dive_size(int samples)