diff options
Diffstat (limited to 'src/include/gnunet_arm_service.h')
-rw-r--r-- | src/include/gnunet_arm_service.h | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h index 1f9d250d0..faf89128f 100644 --- a/src/include/gnunet_arm_service.h +++ b/src/include/gnunet_arm_service.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -54,8 +54,7 @@ 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 | { | ||
59 | /** | 58 | /** |
60 | * Message was sent successfully. | 59 | * Message was sent successfully. |
61 | */ | 60 | */ |
@@ -65,15 +64,13 @@ enum GNUNET_ARM_RequestStatus | |||
65 | * We disconnected from ARM, and request was not sent. | 64 | * We disconnected from ARM, and request was not sent. |
66 | */ | 65 | */ |
67 | GNUNET_ARM_REQUEST_DISCONNECTED = 2 | 66 | GNUNET_ARM_REQUEST_DISCONNECTED = 2 |
68 | |||
69 | }; | 67 | }; |
70 | 68 | ||
71 | 69 | ||
72 | /** | 70 | /** |
73 | * Statuses of services. | 71 | * Statuses of services. |
74 | */ | 72 | */ |
75 | enum GNUNET_ARM_ServiceStatus | 73 | enum GNUNET_ARM_ServiceStatus { |
76 | { | ||
77 | /** | 74 | /** |
78 | * Dummy message. | 75 | * Dummy message. |
79 | */ | 76 | */ |
@@ -99,8 +96,7 @@ enum GNUNET_ARM_ServiceStatus | |||
99 | /** | 96 | /** |
100 | * Replies to ARM requests | 97 | * Replies to ARM requests |
101 | */ | 98 | */ |
102 | enum GNUNET_ARM_Result | 99 | enum GNUNET_ARM_Result { |
103 | { | ||
104 | /** | 100 | /** |
105 | * Service was stopped (never sent for ARM itself). | 101 | * Service was stopped (never sent for ARM itself). |
106 | */ | 102 | */ |
@@ -222,9 +218,9 @@ typedef void | |||
222 | * @return context to use for further ARM operations, NULL on error. | 218 | * @return context to use for further ARM operations, NULL on error. |
223 | */ | 219 | */ |
224 | struct GNUNET_ARM_Handle * | 220 | struct GNUNET_ARM_Handle * |
225 | GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | 221 | GNUNET_ARM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, |
226 | GNUNET_ARM_ConnectionStatusCallback conn_status, | 222 | GNUNET_ARM_ConnectionStatusCallback conn_status, |
227 | void *conn_status_cls); | 223 | void *conn_status_cls); |
228 | 224 | ||
229 | 225 | ||
230 | /** | 226 | /** |
@@ -233,7 +229,7 @@ GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
233 | * @param h the handle that was being used | 229 | * @param h the handle that was being used |
234 | */ | 230 | */ |
235 | void | 231 | void |
236 | GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h); | 232 | GNUNET_ARM_disconnect(struct GNUNET_ARM_Handle *h); |
237 | 233 | ||
238 | 234 | ||
239 | /** | 235 | /** |
@@ -243,7 +239,7 @@ GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h); | |||
243 | * @param op operation to cancel | 239 | * @param op operation to cancel |
244 | */ | 240 | */ |
245 | void | 241 | void |
246 | GNUNET_ARM_operation_cancel (struct GNUNET_ARM_Operation *op); | 242 | GNUNET_ARM_operation_cancel(struct GNUNET_ARM_Operation *op); |
247 | 243 | ||
248 | 244 | ||
249 | /** | 245 | /** |
@@ -255,9 +251,9 @@ GNUNET_ARM_operation_cancel (struct GNUNET_ARM_Operation *op); | |||
255 | * @return handle for the operation, NULL on error | 251 | * @return handle for the operation, NULL on error |
256 | */ | 252 | */ |
257 | struct GNUNET_ARM_Operation * | 253 | struct GNUNET_ARM_Operation * |
258 | GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h, | 254 | GNUNET_ARM_request_service_list(struct GNUNET_ARM_Handle *h, |
259 | GNUNET_ARM_ServiceListCallback cont, | 255 | GNUNET_ARM_ServiceListCallback cont, |
260 | void *cont_cls); | 256 | void *cont_cls); |
261 | 257 | ||
262 | 258 | ||
263 | /** | 259 | /** |
@@ -275,10 +271,10 @@ GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h, | |||
275 | * @return handle for the operation, NULL on error | 271 | * @return handle for the operation, NULL on error |
276 | */ | 272 | */ |
277 | struct GNUNET_ARM_Operation * | 273 | struct GNUNET_ARM_Operation * |
278 | GNUNET_ARM_request_service_stop (struct GNUNET_ARM_Handle *h, | 274 | GNUNET_ARM_request_service_stop(struct GNUNET_ARM_Handle *h, |
279 | const char *service_name, | 275 | const char *service_name, |
280 | GNUNET_ARM_ResultCallback cont, | 276 | GNUNET_ARM_ResultCallback cont, |
281 | void *cont_cls); | 277 | void *cont_cls); |
282 | 278 | ||
283 | 279 | ||
284 | /** | 280 | /** |
@@ -292,11 +288,11 @@ GNUNET_ARM_request_service_stop (struct GNUNET_ARM_Handle *h, | |||
292 | * @return handle for the operation, NULL on error | 288 | * @return handle for the operation, NULL on error |
293 | */ | 289 | */ |
294 | struct GNUNET_ARM_Operation * | 290 | struct GNUNET_ARM_Operation * |
295 | GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h, | 291 | GNUNET_ARM_request_service_start(struct GNUNET_ARM_Handle *h, |
296 | const char *service_name, | 292 | const char *service_name, |
297 | enum GNUNET_OS_InheritStdioFlags std_inheritance, | 293 | enum GNUNET_OS_InheritStdioFlags std_inheritance, |
298 | GNUNET_ARM_ResultCallback cont, | 294 | GNUNET_ARM_ResultCallback cont, |
299 | void *cont_cls); | 295 | void *cont_cls); |
300 | 296 | ||
301 | 297 | ||
302 | /** | 298 | /** |
@@ -330,9 +326,9 @@ typedef void | |||
330 | * @return context to use for further ARM monitor operations, NULL on error. | 326 | * @return context to use for further ARM monitor operations, NULL on error. |
331 | */ | 327 | */ |
332 | struct GNUNET_ARM_MonitorHandle * | 328 | struct GNUNET_ARM_MonitorHandle * |
333 | GNUNET_ARM_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 329 | GNUNET_ARM_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, |
334 | GNUNET_ARM_ServiceStatusCallback cont, | 330 | GNUNET_ARM_ServiceStatusCallback cont, |
335 | void *cont_cls); | 331 | void *cont_cls); |
336 | 332 | ||
337 | 333 | ||
338 | /** | 334 | /** |
@@ -341,7 +337,7 @@ GNUNET_ARM_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
341 | * @param h the handle that was being used | 337 | * @param h the handle that was being used |
342 | */ | 338 | */ |
343 | void | 339 | void |
344 | GNUNET_ARM_monitor_stop (struct GNUNET_ARM_MonitorHandle *h); | 340 | GNUNET_ARM_monitor_stop(struct GNUNET_ARM_MonitorHandle *h); |
345 | 341 | ||
346 | #if 0 /* keep Emacsens' auto-indent happy */ | 342 | #if 0 /* keep Emacsens' auto-indent happy */ |
347 | { | 343 | { |