aboutsummaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
commit200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7 (patch)
treef89388586fbf00a3b7c985b2b28bb74abda3a364 /src/template
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/template')
-rw-r--r--src/template/gnunet-service-template.c14
-rw-r--r--src/template/gnunet-template.c12
2 files changed, 8 insertions, 18 deletions
diff --git a/src/template/gnunet-service-template.c b/src/template/gnunet-service-template.c
index 39d332226..e815398fc 100644
--- a/src/template/gnunet-service-template.c
+++ b/src/template/gnunet-service-template.c
@@ -29,16 +29,6 @@
29 29
30 30
31/** 31/**
32 * List of handlers for the messages understood by this
33 * service.
34 */
35static struct GNUNET_SERVER_MessageHandler handlers[] = {
36 /* FIXME: add handlers here! */
37 {NULL, NULL, 0, 0}
38};
39
40
41/**
42 * Task run during shutdown. 32 * Task run during shutdown.
43 * 33 *
44 * @param cls unused 34 * @param cls unused
@@ -66,6 +56,10 @@ run (void *cls,
66 struct GNUNET_SERVER_Handle *server, 56 struct GNUNET_SERVER_Handle *server,
67 const struct GNUNET_CONFIGURATION_Handle *cfg) 57 const struct GNUNET_CONFIGURATION_Handle *cfg)
68{ 58{
59 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
60 /* FIXME: add handlers here! */
61 {NULL, NULL, 0, 0}
62 };
69 /* FIXME: do setup here */ 63 /* FIXME: do setup here */
70 GNUNET_SERVER_add_handlers (server, handlers); 64 GNUNET_SERVER_add_handlers (server, handlers);
71 GNUNET_SCHEDULER_add_delayed (sched, 65 GNUNET_SCHEDULER_add_delayed (sched,
diff --git a/src/template/gnunet-template.c b/src/template/gnunet-template.c
index ad0da8159..a32b42379 100644
--- a/src/template/gnunet-template.c
+++ b/src/template/gnunet-template.c
@@ -52,14 +52,6 @@ run (void *cls,
52 /* main code here */ 52 /* main code here */
53} 53}
54 54
55/**
56 * gnunet-template command line options
57 */
58static struct GNUNET_GETOPT_CommandLineOption options[] = {
59 /* FIMXE: add options here */
60 GNUNET_GETOPT_OPTION_END
61};
62
63 55
64/** 56/**
65 * The main function to obtain template from gnunetd. 57 * The main function to obtain template from gnunetd.
@@ -71,6 +63,10 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
71int 63int
72main (int argc, char *const *argv) 64main (int argc, char *const *argv)
73{ 65{
66 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
67 /* FIMXE: add options here */
68 GNUNET_GETOPT_OPTION_END
69 };
74 return (GNUNET_OK == 70 return (GNUNET_OK ==
75 GNUNET_PROGRAM_run (argc, 71 GNUNET_PROGRAM_run (argc,
76 argv, 72 argv,