X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gui.h;h=4a98d856c4a394cdc552b90058d3e7e212ac408e;hb=5b56e51eeae04c352b95b1706b9d69b61feba3e9;hp=6aebbb9fe17ebcb029c289726aa71fd7d63aa104;hpb=5cd5185613348b13625e257efcd7b2f11ca85276;p=polyglot.git diff --git a/gui.h b/gui.h index 6aebbb9..4a98d85 100644 --- a/gui.h +++ b/gui.h @@ -5,16 +5,14 @@ // includes -#include "pipe.h" +#include "pipex.h" #include "io.h" -struct gui_t { -#ifndef _WIN32 - io_t io[1]; -#else - PipeStruct io; -#endif -}; +// types + +typedef struct { + pipex_t pipex[1]; +} gui_t; // variables @@ -23,9 +21,9 @@ extern gui_t GUI[1]; // functions extern void gui_init(gui_t * gui); -extern void gui_send(gui_t * gui, const char format[], ...); -extern void gui_get (gui_t * gui, char string[], int size); -extern bool gui_get_non_blocking (gui_t * gui, char string[], int size); +extern void gui_send(gui_t * gui, const char *format, ...); +extern void gui_get (gui_t * gui, char *string); +extern bool gui_get_non_blocking (gui_t * gui, char *string); #endif