X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fchart.h;h=4da12ecfe5b0afba3ea7035680fca5b1ea1d9af9;hb=4d098e24d76bbf91d0a87e7b61a7e18993236045;hp=d931e175b0af0f16f4f637b6e837c07676cfad38;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/output/chart.h b/src/output/chart.h index d931e175..4da12ecf 100644 --- a/src/output/chart.h +++ b/src/output/chart.h @@ -14,7 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include @@ -25,10 +24,11 @@ #include #include -#include #include "manager.h" #include "output.h" +#include "xalloc.h" + #ifndef CHART_H #define CHART_H @@ -64,6 +64,8 @@ struct chart { int legend_left ; int legend_right ; + const char **dataset; + int n_datasets; /* Default font size for the plot (if zero, then use plotter default) */ @@ -78,6 +80,7 @@ struct chart { double x_max; double y_min; double y_max; + bool in_path; }; @@ -85,4 +88,11 @@ struct chart { struct chart * chart_create(void); void chart_submit(struct chart *ch); +/* Helper functions for output drivers that put each chart into a + separate file. */ +void chart_init_separate (struct chart *, const char *type, + const char *file_name_tmpl, int number); + +void chart_finalise_separate (struct chart *); + #endif