aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-12 00:34:47 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-12 00:34:47 +0000
commit4c72fa477ad226660df116c6275283833a3f5214 (patch)
tree9bab2c50101a44dc37c1f908a0488c58edbaf734 /src/topology
parent42c8b584e6e8554329ca6282545b775b63af9c39 (diff)
downloadgnunet-4c72fa477ad226660df116c6275283833a3f5214.tar.gz
gnunet-4c72fa477ad226660df116c6275283833a3f5214.zip
removing dead code / unused variables
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/Makefile.am19
-rw-r--r--src/topology/gnunet-daemon-topology.c87
2 files changed, 106 insertions, 0 deletions
diff --git a/src/topology/Makefile.am b/src/topology/Makefile.am
new file mode 100644
index 000000000..775db33e9
--- /dev/null
+++ b/src/topology/Makefile.am
@@ -0,0 +1,19 @@
1INCLUDES = -I$(top_srcdir)/src/include
2
3if USE_COVERAGE
4 AM_CFLAGS = -fprofile-arcs -ftest-coverage
5endif
6
7
8bin_PROGRAMS = \
9 gnunet-daemon-topology
10
11gnunet_daemon_topology_SOURCES = \
12 gnunet-daemon-topology.c
13gnunet_daemon_topology_LDADD = \
14 $(top_builddir)/src/core/libgnunetcore.la \
15 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
16 $(top_builddir)/src/util/libgnunetutil.la \
17 $(GN_LIBINTL)
18
19
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
new file mode 100644
index 000000000..5d8c92523
--- /dev/null
+++ b/src/topology/gnunet-daemon-topology.c
@@ -0,0 +1,87 @@
1/*
2 This file is part of GNUnet.
3 (C) 2007, 2008, 2009 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file topology/gnunet-daemon-topology.c
23 * @brief code for bootstrapping via topology servers
24 * @author Christian Grothoff
25 */
26
27#include <stdlib.h>
28#include "platform.h"
29#include "gnunet_getopt_lib.h"
30#include "gnunet_protocols.h"
31#include "gnunet_program_lib.h"
32#include "gnunet_statistics_service.h"
33#include "gnunet_strings_lib.h"
34#include "gnunet_time_lib.h"
35
36
37/**
38 * gnunet-daemon-topology command line options.
39 */
40static struct GNUNET_GETOPT_CommandLineOption options[] = {
41 GNUNET_GETOPT_OPTION_END
42};
43
44
45
46/**
47 * Main function that will be run.
48 *
49 * @param cls closure
50 * @param sched the scheduler to use
51 * @param args remaining command-line arguments
52 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
53 * @param cfg configuration
54 */
55static void
56run (void *cls,
57 struct GNUNET_SCHEDULER_Handle * sched,
58 char *const *args,
59 const char *cfgfile,
60 struct GNUNET_CONFIGURATION_Handle * cfg)
61{
62}
63
64
65/**
66 * The main function for the topology daemon.
67 *
68 * @param argc number of arguments from the command line
69 * @param argv command line arguments
70 * @return 0 ok, 1 on error
71 */
72int
73main (int argc, char *const *argv)
74{
75 int ret;
76
77 ret = (GNUNET_OK ==
78 GNUNET_PROGRAM_run (argc,
79 argv,
80 "topology",
81 _("GNUnet topology control (maintaining P2P mesh and F2F constraints)"),
82 options,
83 &run, NULL)) ? 0 : 1;
84 return ret;
85}
86
87/* end of gnunet-daemon-topology.c */