#include "../lib/cli/CMDList/CMDList.h" #include "commands.h" int contrl(char* line) { } const CMD_t Commands[] = { { "ctrl", &contrl } }; CMDList_t* getCMDList() { CMDList_t* list = CMDList_init(); for (int i = sizeof(Commands) / sizeof(CMD_t); i >= 0; i--) { CMDList_add(list, (CMD_t*)&Commands[i], Commands[i].cmd); } return list; }