mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: declare functions in profile.h as extern
We seem to do this in other C-headers, so for consistency also do it here. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f145b116f0
commit
ca4103ea6a
1 changed files with 8 additions and 8 deletions
|
@ -76,12 +76,12 @@ struct ev_select {
|
||||||
bool plot_ev;
|
bool plot_ev;
|
||||||
};
|
};
|
||||||
|
|
||||||
void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
|
extern void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
|
||||||
struct plot_info *analyze_plot_info(struct plot_info *pi);
|
extern struct plot_info *analyze_plot_info(struct plot_info *pi);
|
||||||
void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, struct deco_state *planner_ds);
|
extern void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, struct deco_state *planner_ds);
|
||||||
void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_de, const struct dive *dive, const struct divecomputer *dc, struct plot_info *pi, bool print_mode);
|
extern void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_de, const struct dive *dive, const struct divecomputer *dc, struct plot_info *pi, bool print_mode);
|
||||||
struct plot_data *get_plot_details_new(struct plot_info *pi, int time, struct membuffer *);
|
extern struct plot_data *get_plot_details_new(struct plot_info *pi, int time, struct membuffer *);
|
||||||
void free_plot_info_data(struct plot_info *pi);
|
extern void free_plot_info_data(struct plot_info *pi);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When showing dive profiles, we scale things to the
|
* When showing dive profiles, we scale things to the
|
||||||
|
@ -91,12 +91,12 @@ void free_plot_info_data(struct plot_info *pi);
|
||||||
* We also need to add 180 seconds at the end so the min/max
|
* We also need to add 180 seconds at the end so the min/max
|
||||||
* plots correctly
|
* plots correctly
|
||||||
*/
|
*/
|
||||||
int get_maxtime(struct plot_info *pi);
|
extern int get_maxtime(struct plot_info *pi);
|
||||||
|
|
||||||
/* get the maximum depth to which we want to plot
|
/* get the maximum depth to which we want to plot
|
||||||
* take into account the additional verical space needed to plot
|
* take into account the additional verical space needed to plot
|
||||||
* partial pressure graphs */
|
* partial pressure graphs */
|
||||||
int get_maxdepth(struct plot_info *pi);
|
extern int get_maxdepth(struct plot_info *pi);
|
||||||
|
|
||||||
static inline int get_plot_pressure_data(const struct plot_data *entry, enum plot_pressure sensor, int idx)
|
static inline int get_plot_pressure_data(const struct plot_data *entry, enum plot_pressure sensor, int idx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue