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