diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-18 14:09:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-18 14:09:55 +0000 |
commit | 200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7 (patch) | |
tree | f89388586fbf00a3b7c985b2b28bb74abda3a364 /src/arm/mockup-service.c | |
parent | 640ae593fd34d27034f994a2e945a8942f1a4d5d (diff) | |
download | gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip |
localization
of scopes
Diffstat (limited to 'src/arm/mockup-service.c')
-rw-r--r-- | src/arm/mockup-service.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/arm/mockup-service.c b/src/arm/mockup-service.c index 8a4940630..2f1baab9c 100644 --- a/src/arm/mockup-service.c +++ b/src/arm/mockup-service.c | |||
@@ -81,25 +81,17 @@ handle_shutdown (void *cls, | |||
81 | } | 81 | } |
82 | 82 | ||
83 | 83 | ||
84 | /** | ||
85 | * Default handlers for all services. Will be copied and the | ||
86 | * "callback_cls" fields will be replaced with the specific service | ||
87 | * struct. | ||
88 | */ | ||
89 | static const struct GNUNET_SERVER_MessageHandler handlers[] = { | ||
90 | {&handle_shutdown, NULL, GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN, | ||
91 | sizeof (struct GNUNET_MessageHeader)}, | ||
92 | {NULL, NULL, 0, 0} | ||
93 | }; | ||
94 | |||
95 | |||
96 | |||
97 | static void | 84 | static void |
98 | run (void *cls, | 85 | run (void *cls, |
99 | struct GNUNET_SCHEDULER_Handle *s, | 86 | struct GNUNET_SCHEDULER_Handle *s, |
100 | struct GNUNET_SERVER_Handle *server, | 87 | struct GNUNET_SERVER_Handle *server, |
101 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 88 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
102 | { | 89 | { |
90 | static const struct GNUNET_SERVER_MessageHandler handlers[] = { | ||
91 | {&handle_shutdown, NULL, GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN, | ||
92 | sizeof (struct GNUNET_MessageHeader)}, | ||
93 | {NULL, NULL, 0, 0} | ||
94 | }; | ||
103 | sched = s; | 95 | sched = s; |
104 | /* process client requests */ | 96 | /* process client requests */ |
105 | GNUNET_SERVER_ignore_shutdown (server, GNUNET_YES); | 97 | GNUNET_SERVER_ignore_shutdown (server, GNUNET_YES); |