aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_service_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_service_lib.h')
-rw-r--r--src/include/gnunet_service_lib.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h
index 79453cbf6..1641e0f93 100644
--- a/src/include/gnunet_service_lib.h
+++ b/src/include/gnunet_service_lib.h
@@ -59,11 +59,11 @@ extern "C"
59 * zero (in this case, '*addrs' and '*addr_lens' will be 59 * zero (in this case, '*addrs' and '*addr_lens' will be
60 * set to NULL). 60 * set to NULL).
61 */ 61 */
62int GNUNET_SERVICE_get_server_addresses (const char *serviceName, 62int
63 const struct 63GNUNET_SERVICE_get_server_addresses (const char *serviceName,
64 GNUNET_CONFIGURATION_Handle *cfg, 64 const struct GNUNET_CONFIGURATION_Handle
65 struct sockaddr ***addrs, 65 *cfg, struct sockaddr ***addrs,
66 socklen_t ** addr_lens); 66 socklen_t ** addr_lens);
67 67
68 68
69/** 69/**
@@ -111,9 +111,10 @@ enum GNUNET_SERVICE_Options
111 * @return GNUNET_SYSERR on error, GNUNET_OK 111 * @return GNUNET_SYSERR on error, GNUNET_OK
112 * if we shutdown nicely 112 * if we shutdown nicely
113 */ 113 */
114int GNUNET_SERVICE_run (int argc, char *const *argv, const char *serviceName, 114int
115 enum GNUNET_SERVICE_Options opt, 115GNUNET_SERVICE_run (int argc, char *const *argv, const char *serviceName,
116 GNUNET_SERVICE_Main task, void *task_cls); 116 enum GNUNET_SERVICE_Options opt, GNUNET_SERVICE_Main task,
117 void *task_cls);
117 118
118 119
119struct GNUNET_SERVICE_Context; 120struct GNUNET_SERVICE_Context;
@@ -126,10 +127,9 @@ struct GNUNET_SERVICE_Context;
126 * @param cfg configuration to use 127 * @param cfg configuration to use
127 * @return NULL on error, service handle 128 * @return NULL on error, service handle
128 */ 129 */
129struct GNUNET_SERVICE_Context *GNUNET_SERVICE_start (const char *serviceName, 130struct GNUNET_SERVICE_Context *
130 const struct 131GNUNET_SERVICE_start (const char *serviceName,
131 GNUNET_CONFIGURATION_Handle 132 const struct GNUNET_CONFIGURATION_Handle *cfg);
132 *cfg);
133 133
134 134
135/** 135/**
@@ -139,9 +139,8 @@ struct GNUNET_SERVICE_Context *GNUNET_SERVICE_start (const char *serviceName,
139 * @param ctx the service context returned from the start function 139 * @param ctx the service context returned from the start function
140 * @return handle to the server for this service, NULL if there is none 140 * @return handle to the server for this service, NULL if there is none
141 */ 141 */
142struct GNUNET_SERVER_Handle *GNUNET_SERVICE_get_server (struct 142struct GNUNET_SERVER_Handle *
143 GNUNET_SERVICE_Context 143GNUNET_SERVICE_get_server (struct GNUNET_SERVICE_Context *ctx);
144 *ctx);
145 144
146 145
147/** 146/**
@@ -149,7 +148,8 @@ struct GNUNET_SERVER_Handle *GNUNET_SERVICE_get_server (struct
149 * 148 *
150 * @param sctx the service context returned from the start function 149 * @param sctx the service context returned from the start function
151 */ 150 */
152void GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *sctx); 151void
152GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *sctx);
153 153
154 154
155#if 0 /* keep Emacsens' auto-indent happy */ 155#if 0 /* keep Emacsens' auto-indent happy */