mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:13:23 +00:00
Properly declare 'has_gaschange_event()' function
It's already used in core/gaspressures.c where it was declared privately, and we'll have a new user in the profile code, so just declare it in a proper header file like it should have been. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8136c2d78b
commit
2e82a5d2ed
2 changed files with 1 additions and 3 deletions
|
@ -429,6 +429,7 @@ extern timestamp_t picture_get_timestamp(const char *filename);
|
||||||
extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic);
|
extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic);
|
||||||
extern void picture_free(struct picture *picture);
|
extern void picture_free(struct picture *picture);
|
||||||
|
|
||||||
|
extern bool has_gaschange_event(struct dive *dive, struct divecomputer *dc, int idx);
|
||||||
extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc);
|
extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc);
|
||||||
extern int get_depth_at_time(struct divecomputer *dc, unsigned int time);
|
extern int get_depth_at_time(struct divecomputer *dc, unsigned int time);
|
||||||
|
|
||||||
|
@ -970,7 +971,6 @@ static inline struct gasmix *get_gasmix(struct dive *dive, struct divecomputer *
|
||||||
return gasmix;
|
return gasmix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* these structs holds the information that
|
/* these structs holds the information that
|
||||||
* describes the cylinders / weight systems.
|
* describes the cylinders / weight systems.
|
||||||
* they are global variables initialized in equipment.c
|
* they are global variables initialized in equipment.c
|
||||||
|
|
|
@ -331,8 +331,6 @@ static void debug_print_pressures(struct plot_info *pi)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern bool has_gaschange_event(struct dive *dive, struct divecomputer *dc, int idx);
|
|
||||||
|
|
||||||
/* This function goes through the list of tank pressures, either SENSOR_PRESSURE(entry) or O2CYLINDER_PRESSURE(entry),
|
/* This function goes through the list of tank pressures, either SENSOR_PRESSURE(entry) or O2CYLINDER_PRESSURE(entry),
|
||||||
* of structure plot_info for the dive profile where each item in the list corresponds to one point (node) of the
|
* of structure plot_info for the dive profile where each item in the list corresponds to one point (node) of the
|
||||||
* profile. It finds values for which there are no tank pressures (pressure==0). For each missing item (node) of
|
* profile. It finds values for which there are no tank pressures (pressure==0). For each missing item (node) of
|
||||||
|
|
Loading…
Add table
Reference in a new issue