X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=dive.h;h=8a867ad0dbe369cf94a754218dcb9aa817b341c9;hb=77a903a6bb26d60e1736f7d5c118b598916b37f2;hp=6b5c7781693c613024f92eb7877c10ae0296f37d;hpb=80b0c097334a13f9fd69ed87eceb3997a1084311;p=ext%2Fsubsurface.git diff --git a/dive.h b/dive.h index 6b5c778..8a867ad 100644 --- a/dive.h +++ b/dive.h @@ -97,8 +97,9 @@ extern int weightsystem_none(void *_data); extern int get_pressure_units(unsigned int mb, const char **units); extern double get_depth_units(unsigned int mm, int *frac, const char **units); -extern double get_volume_units(unsigned int mm, int *frac, const char **units); -extern double get_temp_units(unsigned int mm, const char **units); +extern double get_volume_units(unsigned int ml, int *frac, const char **units); +extern double get_temp_units(unsigned int mk, const char **units); +extern double get_weight_units(unsigned int grams, int *frac, const char **units); static inline double grams_to_lbs(int grams) { @@ -338,11 +339,13 @@ extern void exit_ui(void); extern void report_error(GError* error); extern void add_cylinder_description(cylinder_type_t *); +extern void add_weightsystem_description(weightsystem_t *); extern void add_people(const char *string); extern void add_location(const char *string); extern void remember_event(const char *eventname); extern void evn_foreach(void (*callback)(const char *, int *, void *), void *data); +extern int add_new_dive(struct dive *dive); extern int edit_dive_info(struct dive *dive); extern void dive_list_update_dives(void); extern void flush_divelist(struct dive *dive);