privatize libncurses (touches many, many programs)
[dragonfly.git] / usr.bin / evtranalyze / plotter.h
blob702ffc101eab2c7c7e3ed49601277e4c80c0a88e
1 #ifndef _PLOTTER_H_
2 #define _PLOTTER_H_
4 typedef int plotid_t;
5 enum plot_type {
6 PLOT_TYPE_START,
7 PLOT_TYPE_HIST,
8 PLOT_TYPE_LINE,
9 PLOT_TYPE_END
12 struct plotter {
13 void *(*plot_init)(const char *);
14 plotid_t (*plot_new)(void *, enum plot_type, const char *);
15 int (*plot_histogram)(void *, plotid_t, double);
16 int (*plot_line)(void *, plotid_t, double, double);
17 int (*plot_finish)(void *);
20 struct plotter *plotter_factory(void);
22 #endif /* _PLOTTER_H_ */