- make api compile
[oweals/gnunet.git] / src / stream / mesh-test.c
1 #include "platform.h"
2 #include "gnunet_common.h"
3 #include "gnunet_util_lib.h"
4 #include "gnunet_mesh_service.h"
5
6 static void
7 run (void *cls, char *const *args,
8      const char *cfgfile,
9      const struct GNUNET_CONFIGURATION_Handle *cfg)
10 {
11   struct GNUNET_MESH_Handle *m;
12
13   m =  GNUNET_MESH_connect (cfg, /* the configuration handle */
14                             socket, /* cls */
15                             NULL, /* No inbound tunnel handler */
16                             NULL, /* No in-tunnel cleaner */
17                             NULL,
18                             NULL); /* We don't get inbound tunnels */
19 }
20
21 int
22 main (int argc, char **argv)
23 {
24    static const struct GNUNET_GETOPT_CommandLineOption options[] = {
25       GNUNET_GETOPT_OPTION_END
26   };
27    GNUNET_PROGRAM_run (argc, argv, "mesh-test",
28                        "help",
29                        options, &run, NULL);
30   return 0;
31 }