aboutsummaryrefslogtreecommitdiffstats
path: root/config_cmds.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-02 22:30:10 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-02 22:30:10 +0100
commitc6f5689838de263b8129b7c612cde030617ce780 (patch)
treec533fd036ebf6441bf98694367f2f378f1d399ef /config_cmds.h
parent5f5d5837c9d662ce00c2fdad5b963eff6551d21c (diff)
downloadagni-c6f5689838de263b8129b7c612cde030617ce780.tar.gz
agni-c6f5689838de263b8129b7c612cde030617ce780.zip
Move commands to seperate files
Diffstat (limited to 'config_cmds.h')
-rw-r--r--config_cmds.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/config_cmds.h b/config_cmds.h
new file mode 100644
index 0000000..2ae8574
--- /dev/null
+++ b/config_cmds.h
@@ -0,0 +1,27 @@
+#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"
+
+single_cmd_def confgi_cmd_list[] =
+{
+ {"DATE",cmd_date},
+ {"UPTIME",cmd_uptime},
+ {"VERSION",cmd_version},
+ {"PING",cmd_ping},
+ {NULL,NULL}
+};
+
+
+#endif \ No newline at end of file