X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=gui.h;h=4a98d856c4a394cdc552b90058d3e7e212ac408e;hp=6aebbb9fe17ebcb029c289726aa71fd7d63aa104;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 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