From 9fac310d1a4e46f4bcc70177e59cbf93763ef479 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 19 Jan 2000 15:07:00 +0000 Subject: Put client on a stony ground. The whole client is going to be system-specific (the current version UNIX-specific) anyway, so it's useless to try splitting it to sysdep and generic part. Instead of this, configure script decides (based on system type and user's wish) what (if any) client should be built and what autoconfiguration it requires. Also, the client provides its own die/bug/... functions. --- sysdep/unix/Modules | 2 -- sysdep/unix/client-main.c | 61 ----------------------------------------------- 2 files changed, 63 deletions(-) delete mode 100644 sysdep/unix/client-main.c (limited to 'sysdep/unix') diff --git a/sysdep/unix/Modules b/sysdep/unix/Modules index aca7931..017623e 100644 --- a/sysdep/unix/Modules +++ b/sysdep/unix/Modules @@ -19,5 +19,3 @@ krt-iface.h krt-set.c krt-set.h #endif - -client-main.c diff --git a/sysdep/unix/client-main.c b/sysdep/unix/client-main.c deleted file mode 100644 index 4fc2433..0000000 --- a/sysdep/unix/client-main.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * BIRD Client -- Unix Entry Point - * - * (c) 1999 Martin Mares - * - * Can be freely distributed and used under the terms of the GNU GPL. - */ - -#include -#include -#include -#include - -#include "nest/bird.h" -#include "lib/resource.h" /* For dmalloc */ -#include "client/client.h" -#include "nest/cli.h" - -#include "unix.h" - -static char *opt_list = ""; - -static void -usage(void) -{ - fprintf(stderr, "Usage: birdc\n"); - exit(1); -} - -static void -parse_args(int argc, char **argv) -{ - int c; - - while ((c = getopt(argc, argv, opt_list)) >= 0) - switch (c) - { - default: - usage(); - } - if (optind < argc) - usage(); -} - -void -cli_echo(unsigned int class, byte *buf) -{ -} - -int -client_main(int argc, char **argv) -{ -#ifdef HAVE_LIBDMALLOC - if (!getenv("DMALLOC_OPTIONS")) - dmalloc_debug(0x2f03d00); -#endif - - parse_args(argc, argv); - - bug("Not implemented yet!"); -} -- cgit v1.2.3