X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=pipex.h;h=e1a36186bf409b79c85b7dd2a1bc4f23cedfc572;hp=e96457fc7014f154f5901f307cb17eb1b558505d;hb=a0f731f21d6aa26dbf7246039a1c66c2ade0533f;hpb=baab92d048b9ba06dada3a17ec51d9e9340d4730 diff --git a/pipex.h b/pipex.h index e96457f..e1a3618 100644 --- a/pipex.h +++ b/pipex.h @@ -36,6 +36,8 @@ typedef struct { volatile int nReadEnd; char lpBuffer[LINE_INPUT_MAX_CHAR]; char lpReadBuffer[LINE_INPUT_MAX_CHAR]; + char szWriteBuffer[LINE_INPUT_MAX_CHAR]; + DWORD dwWriteIndex; const char *name; } pipex_t; @@ -76,11 +78,13 @@ typedef struct { extern void pipex_open (pipex_t *pipex, const char *name, + const char *working_dir, const char *command); extern bool pipex_active (pipex_t *pipex); extern bool pipex_readln (pipex_t *pipex, char *string); extern bool pipex_readln_nb (pipex_t *pipex, char *string); extern void pipex_writeln (pipex_t *pipex, const char *string); +extern void pipex_write (pipex_t *pipex, const char *string); extern bool pipex_eof (pipex_t *pipex); extern void pipex_send_eof (pipex_t *pipex); extern void pipex_exit (pipex_t *pipex);