summaryrefslogtreecommitdiff
path: root/src/include/gnunet_arm_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_arm_service.h')
-rw-r--r--src/include/gnunet_arm_service.h57
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 */
57enum GNUNET_ARM_RequestStatus { 57enum 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 */
73enum GNUNET_ARM_ServiceMonitorStatus { 74enum 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 */
99enum GNUNET_ARM_Result { 101enum 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 */
292struct GNUNET_ARM_Handle * 295struct GNUNET_ARM_Handle *
293GNUNET_ARM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, 296GNUNET_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 */
303void 306void
304GNUNET_ARM_disconnect(struct GNUNET_ARM_Handle *h); 307GNUNET_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 */
313void 316void
314GNUNET_ARM_operation_cancel(struct GNUNET_ARM_Operation *op); 317GNUNET_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 */
325struct GNUNET_ARM_Operation * 328struct GNUNET_ARM_Operation *
326GNUNET_ARM_request_service_list(struct GNUNET_ARM_Handle *h, 329GNUNET_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 */
345struct GNUNET_ARM_Operation * 348struct GNUNET_ARM_Operation *
346GNUNET_ARM_request_service_stop(struct GNUNET_ARM_Handle *h, 349GNUNET_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 */
362struct GNUNET_ARM_Operation * 365struct GNUNET_ARM_Operation *
363GNUNET_ARM_request_service_start(struct GNUNET_ARM_Handle *h, 366GNUNET_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 */
383typedef void 387typedef 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 */
400struct GNUNET_ARM_MonitorHandle * 405struct GNUNET_ARM_MonitorHandle *
401GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, 406GNUNET_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 */
411void 416void
412GNUNET_ARM_monitor_stop(struct GNUNET_ARM_MonitorHandle *h); 417GNUNET_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{