X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Freadline.h;fp=Usermode%2Finclude%2Freadline.h;h=555a24b77ffd50626c5521f5c44d9b1ce90b299e;hb=fe2794b4f932c0755674493b6a6da4b60a5c2433;hp=831bb5381ab808b83a8b2ce2ef2b39742b1a1379;hpb=e42035c38b65d428672b128f9ae253f81b2ced96;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