summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-19 15:37:56 +0100
committerMartin Mares <mj@ucw.cz>2000-01-19 15:37:56 +0100
commitf50b9e48b93e3f69423a0e6e5fef273ba2022958 (patch)
tree8266a456f5cb079aa13be83c3279638c34d435f8 /client
parent4b87e256eba51a8711c24fbae501ac7975b4ecd3 (diff)
downloadbird-f50b9e48b93e3f69423a0e6e5fef273ba2022958.tar
bird-f50b9e48b93e3f69423a0e6e5fef273ba2022958.zip
Generate a list of all commands and their help texts for the client to use.
Diffstat (limited to 'client')
-rw-r--r--client/client.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/client/client.c b/client/client.c
index ea12c29..2a43a8d 100644
--- a/client/client.c
+++ b/client/client.c
@@ -1,7 +1,7 @@
/*
* BIRD Client
*
- * (c) 1999 Martin Mares <mj@ucw.cz>
+ * (c) 1999--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -9,6 +9,16 @@
#include "nest/bird.h"
#include "client/client.h"
+struct cmd_info {
+ char *command;
+ char *args;
+ char *help;
+};
+
+static struct cmd_info command_table[] = {
+#include "conf/commands.h"
+};
+
int
main(int argc, char **argv)
{