18 lines
		
	
	
		
			328 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			328 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();
 | |
| 
 | |
| // to recive a single caracter
 | |
| bool CLI_charIn(char c);
 | |
| 
 | |
| 
 | |
| #endif |