diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_arm_service.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_arm_service.h')
-rw-r--r-- | src/include/gnunet_arm_service.h | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h index 32355a3e5..4dac317ec 100644 --- a/src/include/gnunet_arm_service.h +++ b/src/include/gnunet_arm_service.h | |||
@@ -54,7 +54,8 @@ extern "C" | |||
54 | /** | 54 | /** |
55 | * Statuses of the requests that client can send to ARM. | 55 | * Statuses of the requests that client can send to ARM. |
56 | */ | 56 | */ |
57 | enum GNUNET_ARM_RequestStatus { | 57 | enum GNUNET_ARM_RequestStatus |
58 | { | ||
58 | /** | 59 | /** |
59 | * Message was sent successfully. | 60 | * Message was sent successfully. |
60 | */ | 61 | */ |
@@ -70,7 +71,8 @@ enum GNUNET_ARM_RequestStatus { | |||
70 | /** | 71 | /** |
71 | * Statuses of services. | 72 | * Statuses of services. |
72 | */ | 73 | */ |
73 | enum GNUNET_ARM_ServiceMonitorStatus { | 74 | enum GNUNET_ARM_ServiceMonitorStatus |
75 | { | ||
74 | /** | 76 | /** |
75 | * Dummy message. | 77 | * Dummy message. |
76 | */ | 78 | */ |
@@ -96,7 +98,8 @@ enum GNUNET_ARM_ServiceMonitorStatus { | |||
96 | /** | 98 | /** |
97 | * Replies to ARM requests | 99 | * Replies to ARM requests |
98 | */ | 100 | */ |
99 | enum GNUNET_ARM_Result { | 101 | enum GNUNET_ARM_Result |
102 | { | ||
100 | /** | 103 | /** |
101 | * Service was stopped (never sent for ARM itself). | 104 | * Service was stopped (never sent for ARM itself). |
102 | */ | 105 | */ |
@@ -290,9 +293,9 @@ typedef void | |||
290 | * @return context to use for further ARM operations, NULL on error. | 293 | * @return context to use for further ARM operations, NULL on error. |
291 | */ | 294 | */ |
292 | struct GNUNET_ARM_Handle * | 295 | struct GNUNET_ARM_Handle * |
293 | GNUNET_ARM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | 296 | GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |
294 | GNUNET_ARM_ConnectionStatusCallback conn_status, | 297 | GNUNET_ARM_ConnectionStatusCallback conn_status, |
295 | void *conn_status_cls); | 298 | void *conn_status_cls); |
296 | 299 | ||
297 | 300 | ||
298 | /** | 301 | /** |
@@ -301,7 +304,7 @@ GNUNET_ARM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
301 | * @param h the handle that was being used | 304 | * @param h the handle that was being used |
302 | */ | 305 | */ |
303 | void | 306 | void |
304 | GNUNET_ARM_disconnect(struct GNUNET_ARM_Handle *h); | 307 | GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h); |
305 | 308 | ||
306 | 309 | ||
307 | /** | 310 | /** |
@@ -311,7 +314,7 @@ GNUNET_ARM_disconnect(struct GNUNET_ARM_Handle *h); | |||
311 | * @param op operation to cancel | 314 | * @param op operation to cancel |
312 | */ | 315 | */ |
313 | void | 316 | void |
314 | GNUNET_ARM_operation_cancel(struct GNUNET_ARM_Operation *op); | 317 | GNUNET_ARM_operation_cancel (struct GNUNET_ARM_Operation *op); |
315 | 318 | ||
316 | 319 | ||
317 | /** | 320 | /** |
@@ -323,9 +326,9 @@ GNUNET_ARM_operation_cancel(struct GNUNET_ARM_Operation *op); | |||
323 | * @return handle for the operation, NULL on error | 326 | * @return handle for the operation, NULL on error |
324 | */ | 327 | */ |
325 | struct GNUNET_ARM_Operation * | 328 | struct GNUNET_ARM_Operation * |
326 | GNUNET_ARM_request_service_list(struct GNUNET_ARM_Handle *h, | 329 | GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h, |
327 | GNUNET_ARM_ServiceListCallback cont, | 330 | GNUNET_ARM_ServiceListCallback cont, |
328 | void *cont_cls); | 331 | void *cont_cls); |
329 | 332 | ||
330 | 333 | ||
331 | /** | 334 | /** |
@@ -343,10 +346,10 @@ GNUNET_ARM_request_service_list(struct GNUNET_ARM_Handle *h, | |||
343 | * @return handle for the operation, NULL on error | 346 | * @return handle for the operation, NULL on error |
344 | */ | 347 | */ |
345 | struct GNUNET_ARM_Operation * | 348 | struct GNUNET_ARM_Operation * |
346 | GNUNET_ARM_request_service_stop(struct GNUNET_ARM_Handle *h, | 349 | GNUNET_ARM_request_service_stop (struct GNUNET_ARM_Handle *h, |
347 | const char *service_name, | 350 | const char *service_name, |
348 | GNUNET_ARM_ResultCallback cont, | 351 | GNUNET_ARM_ResultCallback cont, |
349 | void *cont_cls); | 352 | void *cont_cls); |
350 | 353 | ||
351 | 354 | ||
352 | /** | 355 | /** |
@@ -360,11 +363,12 @@ GNUNET_ARM_request_service_stop(struct GNUNET_ARM_Handle *h, | |||
360 | * @return handle for the operation, NULL on error | 363 | * @return handle for the operation, NULL on error |
361 | */ | 364 | */ |
362 | struct GNUNET_ARM_Operation * | 365 | struct GNUNET_ARM_Operation * |
363 | GNUNET_ARM_request_service_start(struct GNUNET_ARM_Handle *h, | 366 | GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h, |
364 | const char *service_name, | 367 | const char *service_name, |
365 | enum GNUNET_OS_InheritStdioFlags std_inheritance, | 368 | enum GNUNET_OS_InheritStdioFlags |
366 | GNUNET_ARM_ResultCallback cont, | 369 | std_inheritance, |
367 | void *cont_cls); | 370 | GNUNET_ARM_ResultCallback cont, |
371 | void *cont_cls); | ||
368 | 372 | ||
369 | 373 | ||
370 | /** | 374 | /** |
@@ -382,8 +386,9 @@ struct GNUNET_ARM_MonitorHandle; | |||
382 | */ | 386 | */ |
383 | typedef void | 387 | typedef void |
384 | (*GNUNET_ARM_ServiceMonitorCallback) (void *cls, | 388 | (*GNUNET_ARM_ServiceMonitorCallback) (void *cls, |
385 | const char *service, | 389 | const char *service, |
386 | enum GNUNET_ARM_ServiceMonitorStatus status); | 390 | enum GNUNET_ARM_ServiceMonitorStatus |
391 | status); | ||
387 | 392 | ||
388 | 393 | ||
389 | /** | 394 | /** |
@@ -398,9 +403,9 @@ typedef void | |||
398 | * @return context to use for further ARM monitor operations, NULL on error. | 403 | * @return context to use for further ARM monitor operations, NULL on error. |
399 | */ | 404 | */ |
400 | struct GNUNET_ARM_MonitorHandle * | 405 | struct GNUNET_ARM_MonitorHandle * |
401 | GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, | 406 | GNUNET_ARM_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
402 | GNUNET_ARM_ServiceMonitorCallback cont, | 407 | GNUNET_ARM_ServiceMonitorCallback cont, |
403 | void *cont_cls); | 408 | void *cont_cls); |
404 | 409 | ||
405 | 410 | ||
406 | /** | 411 | /** |
@@ -409,7 +414,7 @@ GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
409 | * @param h the handle that was being used | 414 | * @param h the handle that was being used |
410 | */ | 415 | */ |
411 | void | 416 | void |
412 | GNUNET_ARM_monitor_stop(struct GNUNET_ARM_MonitorHandle *h); | 417 | GNUNET_ARM_monitor_stop (struct GNUNET_ARM_MonitorHandle *h); |
413 | 418 | ||
414 | #if 0 /* keep Emacsens' auto-indent happy */ | 419 | #if 0 /* keep Emacsens' auto-indent happy */ |
415 | { | 420 | { |