e0b3bcb133f00d8f878b8aea531d75a9b590cd89
[pspp] / src / ui / gui / psppire.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011  Free Software Foundation
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef PSPPIRE_H
18 #define PSPPIRE_H
19
20 #include <glib.h>
21
22 #include <stdbool.h>
23
24 struct lexer;
25
26
27 struct init_source
28 {
29   GSource parent;
30   int state;
31   GMainLoop *loop;
32   gchar *file;
33   int *argc;
34   char ***argv;
35 };
36
37 bool initialize (const struct init_source *is);
38
39 void de_initialize (void);
40
41 void psppire_quit (void);
42
43 const char * output_file_name (void);
44
45 void psppire_set_lexer (struct lexer *);
46
47 #endif /* PSPPIRE_H */