version 1.4b27
[polyglot.git] / gui.h
1 // gui.h
2
3 #ifndef GUI_H
4 #define GUI_H
5
6 // includes
7
8 #include "pipe.h"
9 #include "io.h"
10
11 struct gui_t {
12 #ifndef _WIN32
13     io_t io[1];
14 #else
15     PipeStruct io;
16 #endif
17 };
18
19 // variables
20
21 extern gui_t GUI[1];
22
23 // functions
24
25 extern void gui_init(gui_t * gui);
26 extern void gui_send(gui_t * gui, const char format[], ...);
27 extern void gui_get        (gui_t * gui, char string[], int size); 
28 extern bool gui_get_non_blocking (gui_t * gui, char string[], int size); 
29
30
31 #endif