Kernel/arm7 - Updated ARM7 code to newer HAL API changes
[tpg/acess2.git] / Usermode / include / readline.h
index 831bb53..555a24b 100644 (file)
 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

UCC git Repository :: git.ucc.asn.au