changed heredoc to exchange data via a stdin like interface with a read function fix #39
This commit is contained in:
@@ -123,6 +123,8 @@ typedef struct
|
||||
uint32_t inputCount; /**< offset of the current write operation */
|
||||
uint32_t lastNewlineIdx; /**< index of the lest newline */
|
||||
uint32_t cursor; /**< offset where the cursor is at */
|
||||
uint32_t stdinIdx; /**< start index of stdin in buffer */
|
||||
uint32_t stdinLength; /**< length of the stdin data */
|
||||
char *historyBuffer; /**< buffer to store the last commands */
|
||||
uint32_t historyBufferSize; /**< size of the history buffer */
|
||||
uint32_t historyStart; /**< index of the oldest stored command */
|
||||
@@ -179,6 +181,10 @@ shellmatta_retCode_t shellmatta_write( shellmatta_handle_t handle,
|
||||
char *data,
|
||||
uint32_t length);
|
||||
|
||||
shellmatta_retCode_t shellmatta_read( shellmatta_handle_t handle,
|
||||
char **data,
|
||||
uint32_t *length);
|
||||
|
||||
shellmatta_retCode_t shellmatta_opt( shellmatta_handle_t handle,
|
||||
char *optionString,
|
||||
char *option,
|
||||
|
Reference in New Issue
Block a user