X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Freadline.h;h=555a24b77ffd50626c5521f5c44d9b1ce90b299e;hb=83322f5718ddc6e2e67b6c32d2a263caed780d9a;hp=831bb5381ab808b83a8b2ce2ef2b39742b1a1379;hpb=45f9a29e481ce9ea7ca7121541f0e0f90147f5b1;p=tpg%2Facess2.git diff --git a/Usermode/include/readline.h b/Usermode/include/readline.h index 831bb538..555a24b7 100644 --- a/Usermode/include/readline.h +++ b/Usermode/include/readline.h @@ -11,18 +11,23 @@ typedef struct sReadline tReadline; // === STRUCTURES === -struct sReadline -{ - int UseHistory; // Boolean - - int NumHistory; - char **History; -}; // === FUNCTIONS === +/** + * + */ +extern tReadline *Readline_Init(int UseHistory); + /** * \brief Read a line from stdin + * \return Heap string containing the command string (to be free'd by the caller) */ extern char *Readline(tReadline *Info); +/** + * \brief Read a line from stdin (non-blocking) + * \return Heap string containing the command string (to be free'd by the caller) + */ +extern char *Readline_NonBlock(tReadline *Info); + #endif