mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: pass index instead of pointer to set_plot_pressure_data
Another plot-pressure-related function whose argument is converted to an index. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fe6d3c8c38
commit
2fd4cb5fe1
3 changed files with 9 additions and 15 deletions
|
@ -107,9 +107,9 @@ static inline int get_plot_pressure_data(const struct plot_info *pi, int idx, en
|
|||
return pi->entry[idx].pressure[cylinder][sensor];
|
||||
}
|
||||
|
||||
static inline void set_plot_pressure_data(struct plot_data *entry, enum plot_pressure sensor, int idx, int value)
|
||||
static inline void set_plot_pressure_data(struct plot_info *pi, int idx, enum plot_pressure sensor, int cylinder, int value)
|
||||
{
|
||||
entry->pressure[idx][sensor] = value;
|
||||
pi->entry[idx].pressure[cylinder][sensor] = value;
|
||||
}
|
||||
|
||||
static inline int get_plot_sensor_pressure(const struct plot_info *pi, int idx, int cylinder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue