aboutsummaryrefslogtreecommitdiff
path: root/src/template/gnunet-service-template.c
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/gnunet-service-template.c
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/template/gnunet-service-template.c')
-rw-r--r--src/template/gnunet-service-template.c14
1 files changed, 4 insertions, 10 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,