fix #15 added an api to control mode and echo + fixed the implementation and added tests
This commit is contained in:
@@ -129,23 +129,27 @@ shellmatta_retCode_t shellmatta_doInit( shellmatta_instance_t *inst,
|
||||
shellmatta_retCode_t shellmatta_resetShell( shellmatta_handle_t handle,
|
||||
bool printPrompt);
|
||||
|
||||
shellmatta_retCode_t shellmatta_addCmd( shellmatta_handle_t handle,
|
||||
shellmatta_cmd_t *cmd);
|
||||
shellmatta_retCode_t shellmatta_addCmd( shellmatta_handle_t handle,
|
||||
shellmatta_cmd_t *cmd);
|
||||
|
||||
shellmatta_retCode_t shellmatta_removeCmd( shellmatta_handle_t handle,
|
||||
shellmatta_cmd_t *cmd);
|
||||
|
||||
shellmatta_retCode_t shellmatta_configure( shellmatta_handle_t handle,
|
||||
shellmatta_mode_t mode,
|
||||
bool echoEnabled);
|
||||
|
||||
shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
|
||||
char *data,
|
||||
uint32_t size);
|
||||
|
||||
shellmatta_retCode_t shellmatta_write( shellmatta_handle_t handle,
|
||||
char *data,
|
||||
uint32_t length);
|
||||
shellmatta_retCode_t shellmatta_write( shellmatta_handle_t handle,
|
||||
char *data,
|
||||
uint32_t length);
|
||||
#ifndef SHELLMATTA_STRIP_PRINTF
|
||||
shellmatta_retCode_t shellmatta_printf( shellmatta_handle_t handle,
|
||||
const char *fmt,
|
||||
...);
|
||||
shellmatta_retCode_t shellmatta_printf( shellmatta_handle_t handle,
|
||||
const char *fmt,
|
||||
...);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user