#ifndef __CONFIG_CMDS_H #define __CONFIG_CMDS_H #define CMD_T_SIMPLE 0 #define CMD_T_RPC 1 #define CMD_T_LUA 2 typedef struct single_cmd_def { int type; char *name; void *(*callback)(void *); } single_cmd_def; //list all include files with commands #include "config_all_cmds.h" //some commands have aliases for compat with some developerslv bots //nothing else comaptible will be added, as its not about "standarts" single_cmd_def confgi_cmd_list[] = { //simple echo response commands {CMD_T_SIMPLE,"DATE",cmd_date}, {CMD_T_SIMPLE,"UPTIME",cmd_uptime}, {CMD_T_SIMPLE,"VERSION",cmd_version}, {CMD_T_SIMPLE,"!version",cmd_version}, {CMD_T_SIMPLE,"PING",cmd_ping}, {CMD_T_SIMPLE,"!ping",cmd_ping}, {CMD_T_SIMPLE,"LOADAVG",cmd_loadavg}, {CMD_T_SIMPLE,"RUSE",cmd_rusage}, {CMD_T_SIMPLE,"CMD",cmd_cmd}, {CMD_T_SIMPLE,"!echo",cmd_cmd}, {CMD_T_SIMPLE,"SHA1",cmd_sha1}, {CMD_T_SIMPLE,"COOKIE",cmd_cookie}, {CMD_T_SIMPLE,"BOTU",cmd_botu}, {CMD_T_SIMPLE,"!uptime",cmd_botu}, {CMD_T_SIMPLE,"FIR1P",cmd_fir1p}, {CMD_T_SIMPLE,"RAND",cmd_rand}, {CMD_T_SIMPLE,"RANDC",cmd_rand_libc}, {CMD_T_SIMPLE,"FIR",cmd_fir}, {CMD_T_SIMPLE,"HELP",cmd_help}, {CMD_T_SIMPLE,"SPI",cmd_spi}, {CMD_T_SIMPLE,"STAT",cmd_stat}, //more complicated command {CMD_T_RPC,"TODO",cmd_todo}, {CMD_T_LUA,"LUA",cmd_lua}, {0,NULL,NULL} }; #endif