summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-18 16:21:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 07:03:27 -0800
commit50424df65311d2226bc4f221b9c2f3fa5d965ed3 (patch)
treee595b31357b3c8a768e8ecead977eaec57a89c23 /profile.h
parent77da20196f3efe8eaf4a7bd898f0c6206d146c61 (diff)
downloadsubsurface-50424df65311d2226bc4f221b9c2f3fa5d965ed3.tar.gz
Use 'struct membuffer' for profile info string generation
The profile info was generated using nasty string concatenation that the membuffers are much better at anyway. And membuffers don't need those arbitrarily sized fixed buffers (500 bytes? Why 500 bytes?). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.h b/profile.h
index ef81763bf..82d6d58e7 100644
--- a/profile.h
+++ b/profile.h
@@ -7,6 +7,7 @@ extern "C" {
typedef enum { STABLE, SLOW, MODERATE, FAST, CRAZY } velocity_t;
+struct membuffer;
struct divecomputer;
struct graphics_context;
struct plot_info;
@@ -56,7 +57,7 @@ struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer *
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);
void calculate_deco_information(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool print_mode);
-void get_plot_details_new(struct plot_info *pi, int time, char *buf, int bufsize);
+void get_plot_details_new(struct plot_info *pi, int time, struct membuffer *);
struct ev_select {
char *ev_name;