#ifndef __CONFIG_CMDS_H #define __CONFIG_CMDS_H typedef struct single_cmd_def { char *name; void *(*callback)(void *); } single_cmd_def; //list all include files with commands #include "cmd_date.h" #include "cmd_uptime.h" #include "cmd_version.h" #include "cmd_ping.h" #include "cmd_loadavg.h" #include "cmd_rusage.h" #include "cmd_cmd.h" #include "cmd_sha1.h" single_cmd_def confgi_cmd_list[] = { {"DATE",cmd_date}, {"UPTIME",cmd_uptime}, {"VERSION",cmd_version}, {"PING",cmd_ping}, {"LOADAVG",cmd_loadavg}, {"RUSE",cmd_rusage}, {"CMD",cmd_cmd}, {"SHA1",cmd_sha1}, {NULL,NULL} }; #endif