aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
commit08676aaa5b76a0723c8c60ee510aec3652e50774 (patch)
tree0c1ccb9bd806733aba38f76c79499cb0f3cec048 /src/include
parentce52e258a28a17f5c319549fda1b5fbb8f6169a7 (diff)
downloadgnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.tar.gz
gnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.zip
-remove unnecessary arguments from ARM callbacks
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_arm_service.h34
-rw-r--r--src/include/gnunet_peerinfo_service.h4
2 files changed, 22 insertions, 16 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h
index f5fec6adb..44e47affc 100644
--- a/src/include/gnunet_arm_service.h
+++ b/src/include/gnunet_arm_service.h
@@ -181,11 +181,8 @@ struct GNUNET_ARM_Handle;
181 * @param cls closure 181 * @param cls closure
182 * @param connected GNUNET_YES if connected, GNUNET_NO if disconnected, 182 * @param connected GNUNET_YES if connected, GNUNET_NO if disconnected,
183 * GNUNET_SYSERR if there was an error. 183 * GNUNET_SYSERR if there was an error.
184 * @param error GNUNET_YES if we encountered a permanent error, and there
185 * will be no re-connection.
186 */ 184 */
187typedef void (*GNUNET_ARM_ConnectionStatusCallback) (void *cls, 185typedef void (*GNUNET_ARM_ConnectionStatusCallback) (void *cls,
188 struct GNUNET_ARM_Handle *arm,
189 int connected); 186 int connected);
190 187
191 188
@@ -196,12 +193,14 @@ typedef void (*GNUNET_ARM_ConnectionStatusCallback) (void *cls,
196 * 'rs' will indicate that, and 'service' and 'result' will be undefined. 193 * 'rs' will indicate that, and 'service' and 'result' will be undefined.
197 * 194 *
198 * @param cls closure 195 * @param cls closure
199 * @param arm handle to the arm connection
200 * @param rs status of the request 196 * @param rs status of the request
201 * @param service service name 197 * @param service service name
202 * @param result result of the operation 198 * @param result result of the operation
203 */ 199 */
204typedef void (*GNUNET_ARM_ResultCallback) (void *cls, struct GNUNET_ARM_Handle *arm, enum GNUNET_ARM_RequestStatus rs, const char *service, enum GNUNET_ARM_Result result); 200typedef void (*GNUNET_ARM_ResultCallback) (void *cls,
201 enum GNUNET_ARM_RequestStatus rs,
202 const char *service,
203 enum GNUNET_ARM_Result result);
205 204
206 205
207/** 206/**
@@ -211,12 +210,14 @@ typedef void (*GNUNET_ARM_ResultCallback) (void *cls, struct GNUNET_ARM_Handle *
211 * 'rs' will indicate that, and 'count' and 'list' will be undefined. 210 * 'rs' will indicate that, and 'count' and 'list' will be undefined.
212 * 211 *
213 * @param cls closure 212 * @param cls closure
214 * @param arm handle to the arm connection
215 * @param rs status of the request 213 * @param rs status of the request
216 * @param count number of strings in the list 214 * @param count number of strings in the list
217 * @param list list of running services 215 * @param list list of running services
218 */ 216 */
219typedef void (*GNUNET_ARM_ServiceListCallback) (void *cls, struct GNUNET_ARM_Handle *arm, enum GNUNET_ARM_RequestStatus rs, unsigned int count, const char *const*list); 217typedef void (*GNUNET_ARM_ServiceListCallback) (void *cls,
218 enum GNUNET_ARM_RequestStatus rs,
219 unsigned int count,
220 const char *const*list);
220 221
221 222
222/** 223/**
@@ -232,7 +233,8 @@ typedef void (*GNUNET_ARM_ServiceListCallback) (void *cls, struct GNUNET_ARM_Han
232 */ 233 */
233struct GNUNET_ARM_Handle * 234struct GNUNET_ARM_Handle *
234GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, 235GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
235 GNUNET_ARM_ConnectionStatusCallback conn_status, void *cls); 236 GNUNET_ARM_ConnectionStatusCallback conn_status,
237 void *cls);
236 238
237 239
238/** 240/**
@@ -254,8 +256,8 @@ GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *h);
254 */ 256 */
255void 257void
256GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h, 258GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h,
257 struct GNUNET_TIME_Relative timeout, 259 struct GNUNET_TIME_Relative timeout,
258 GNUNET_ARM_ServiceListCallback cont, void *cont_cls); 260 GNUNET_ARM_ServiceListCallback cont, void *cont_cls);
259 261
260 262
261/** 263/**
@@ -274,8 +276,9 @@ GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h,
274 */ 276 */
275void 277void
276GNUNET_ARM_request_service_stop (struct GNUNET_ARM_Handle *h, 278GNUNET_ARM_request_service_stop (struct GNUNET_ARM_Handle *h,
277 const char *service_name, struct GNUNET_TIME_Relative timeout, 279 const char *service_name,
278 GNUNET_ARM_ResultCallback cont, void *cont_cls); 280 struct GNUNET_TIME_Relative timeout,
281 GNUNET_ARM_ResultCallback cont, void *cont_cls);
279 282
280 283
281/** 284/**
@@ -309,7 +312,9 @@ struct GNUNET_ARM_MonitorHandle;
309 * @param service service name 312 * @param service service name
310 * @param status status of the service 313 * @param status status of the service
311 */ 314 */
312typedef void (*GNUNET_ARM_ServiceStatusCallback) (void *cls, struct GNUNET_ARM_MonitorHandle *arm, const char *service, enum GNUNET_ARM_ServiceStatus status); 315typedef void (*GNUNET_ARM_ServiceStatusCallback) (void *cls,
316 const char *service,
317 enum GNUNET_ARM_ServiceStatus status);
313 318
314 319
315/** 320/**
@@ -325,7 +330,8 @@ typedef void (*GNUNET_ARM_ServiceStatusCallback) (void *cls, struct GNUNET_ARM_M
325 */ 330 */
326struct GNUNET_ARM_MonitorHandle * 331struct GNUNET_ARM_MonitorHandle *
327GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg, 332GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg,
328 GNUNET_ARM_ServiceStatusCallback cont, void *cont_cls); 333 GNUNET_ARM_ServiceStatusCallback cont,
334 void *cont_cls);
329 335
330 336
331/** 337/**
diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h
index 6aadba964..b428f49a4 100644
--- a/src/include/gnunet_peerinfo_service.h
+++ b/src/include/gnunet_peerinfo_service.h
@@ -163,7 +163,7 @@ struct GNUNET_PEERINFO_IteratorContext;
163 */ 163 */
164struct GNUNET_PEERINFO_IteratorContext * 164struct GNUNET_PEERINFO_IteratorContext *
165GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, 165GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h,
166 int include_friend_only, 166 int include_friend_only,
167 const struct GNUNET_PeerIdentity *peer, 167 const struct GNUNET_PeerIdentity *peer,
168 struct GNUNET_TIME_Relative timeout, 168 struct GNUNET_TIME_Relative timeout,
169 GNUNET_PEERINFO_Processor callback, void *callback_cls); 169 GNUNET_PEERINFO_Processor callback, void *callback_cls);
@@ -203,7 +203,7 @@ struct GNUNET_PEERINFO_NotifyContext;
203 */ 203 */
204struct GNUNET_PEERINFO_NotifyContext * 204struct GNUNET_PEERINFO_NotifyContext *
205GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg, 205GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg,
206 int include_friend_only, 206 int include_friend_only,
207 GNUNET_PEERINFO_Processor callback, void *callback_cls); 207 GNUNET_PEERINFO_Processor callback, void *callback_cls);
208 208
209 209