summaryrefslogtreecommitdiffstats
path: root/core/display.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-06 17:18:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-09 19:19:04 +0100
commit00289cd2224bbf3bbb8568f52a73e52596bd8e6e (patch)
treef30bb4ee001773e885f14fbec340824ed05cd409 /core/display.h
parentbef1eac7fa4baabc0f970b50acac1f4bee7d7f7c (diff)
downloadsubsurface-00289cd2224bbf3bbb8568f52a73e52596bd8e6e.tar.gz
Profile: dynamically allocate plot pressure data
All accesses to the pressure data were converted to use functions. Therefore it is now rather trivial to dynamically allocate the pressure array and just change the functions. The only thing to take care of is the idiosyncratic memory management. Make sure to free and copy the buffer in the appropriate places. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/display.h')
-rw-r--r--core/display.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/display.h b/core/display.h
index 6b773a496..3e3a9531e 100644
--- a/core/display.h
+++ b/core/display.h
@@ -21,6 +21,7 @@ struct plot_info {
double endtempcoord;
double maxpp;
struct plot_data *entry;
+ struct plot_pressure_data *pressures; /* MAX_CYLINDERS blocks of nr entries. */
};
extern struct divecomputer *select_dc(struct dive *);