2024-04-13 20:20:44 +02:00

22 lines
383 B
C

#ifndef CLI_h
#define CLI_h
#include <stdbool.h>
#include "../CMDList/CMDList.h"
typedef int (*CLI_charOutFn)(const char* line);
// initilize and register the lineout print function
bool CLI_init(CLI_charOutFn lineOut, CMDList_t* cmdList);
bool CLI_deinit();
#ifdef HISTORY
extern void CLI_PrintHistory();
#endif
// to recive a single caracter
bool CLI_charIn(char c);
#endif