Added ifndef/def/endif protection to C headers.
[stripchart.git] / stripchart.h
1 /*
2   stripchart - tools for quick & dirty data plotting.
3   Copyright (C) 2008, William Trevor King
4
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License as
7   published by the Free Software Foundation; either version 3 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
13   See the GNU General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18   02111-1307, USA.
19
20   The author may be contacted at <wking@drexel.edu> on the Internet, or
21   write to Trevor King, Drexel University, Physics Dept., 3141 Chestnut St.,
22   Philadelphia PA 19104, USA.
23  */
24
25 #ifndef _STRIPCHART_H
26 #define _STRIPCHART_H
27
28 typedef struct stripchart_struct stripchart_t;
29
30 extern int stripchart_create(stripchart_t **pChart,
31                            char *title, 
32                            char *geometry, /* eg "570x570+0+0" for upper left*/
33                            double minY, double maxY,
34                            double scale_res,
35                            int points_shown_at_once,
36                            int axes_on);
37
38 extern int stripchart_point(stripchart_t *chart, double value);
39
40 extern int stripchart_destroy(stripchart_t **pChart);
41
42 #endif /* _STRIPCHART_H */