diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_arm_service.h | 18 | ||||
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 7 | ||||
-rw-r--r-- | src/include/gnunet_core_service.h | 53 |
3 files changed, 4 insertions, 74 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h index 7fb14d3ac..f8d71bd8b 100644 --- a/src/include/gnunet_arm_service.h +++ b/src/include/gnunet_arm_service.h | |||
@@ -62,25 +62,9 @@ enum GNUNET_ARM_RequestStatus | |||
62 | GNUNET_ARM_REQUEST_SENT_OK = 0, | 62 | GNUNET_ARM_REQUEST_SENT_OK = 0, |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * Misconfiguration (can't connect to the ARM service). | ||
66 | */ | ||
67 | GNUNET_ARM_REQUEST_CONFIGURATION_ERROR = 1, | ||
68 | |||
69 | /** | ||
70 | * We disconnected from ARM, and request was not sent. | 65 | * We disconnected from ARM, and request was not sent. |
71 | */ | 66 | */ |
72 | GNUNET_ARM_REQUEST_DISCONNECTED = 2, | 67 | GNUNET_ARM_REQUEST_DISCONNECTED = 2 |
73 | |||
74 | /** | ||
75 | * ARM API is busy (probably trying to connect to ARM), | ||
76 | * and request was not sent. Try again later. | ||
77 | */ | ||
78 | GNUNET_ARM_REQUEST_BUSY = 3, | ||
79 | |||
80 | /** | ||
81 | * Request time ran out before we had a chance to send it. | ||
82 | */ | ||
83 | GNUNET_ARM_REQUEST_TIMEOUT = 5 | ||
84 | 68 | ||
85 | }; | 69 | }; |
86 | 70 | ||
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 746dea61f..c1537e4f8 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -281,8 +281,8 @@ GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle | |||
281 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 281 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
282 | */ | 282 | */ |
283 | int | 283 | int |
284 | GNUNET_CONFIGURATION_get_value_float (const struct GNUNET_CONFIGURATION_Handle | 284 | GNUNET_CONFIGURATION_get_value_float (const struct GNUNET_CONFIGURATION_Handle *cfg, |
285 | *cfg, const char *section, | 285 | const char *section, |
286 | const char *option, | 286 | const char *option, |
287 | float *number); | 287 | float *number); |
288 | 288 | ||
@@ -454,9 +454,6 @@ GNUNET_CONFIGURATION_get_data (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
454 | size_t buf_size); | 454 | size_t buf_size); |
455 | 455 | ||
456 | 456 | ||
457 | |||
458 | |||
459 | |||
460 | /** | 457 | /** |
461 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" | 458 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" |
462 | * where either in the "PATHS" section or the environtment "FOO" is | 459 | * where either in the "PATHS" section or the environtment "FOO" is |
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 8136770b7..ace223c11 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2009-2014, 2016 GNUnet e.V. | 3 | Copyright (C) 2009-2017 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -197,57 +197,6 @@ GNUNET_CORE_get_mq (const struct GNUNET_CORE_Handle *h, | |||
197 | 197 | ||
198 | 198 | ||
199 | /** | 199 | /** |
200 | * Handle for a transmission request. | ||
201 | */ | ||
202 | struct GNUNET_CORE_TransmitHandle; | ||
203 | |||
204 | |||
205 | /** | ||
206 | * Ask the core to call @a notify once it is ready to transmit the | ||
207 | * given number of bytes to the specified @a target. Must only be | ||
208 | * called after a connection to the respective peer has been | ||
209 | * established (and the client has been informed about this). You may | ||
210 | * have one request of this type pending for each connected peer at | ||
211 | * any time. If a peer disconnects, the application MUST call | ||
212 | * #GNUNET_CORE_notify_transmit_ready_cancel() on the respective | ||
213 | * transmission request, if one such request is pending. | ||
214 | * | ||
215 | * @param handle connection to core service | ||
216 | * @param cork is corking allowed for this transmission? | ||
217 | * @param priority how important is the message? | ||
218 | * @param maxdelay how long can the message wait? Only effective if @a cork is #GNUNET_YES | ||
219 | * @param target who should receive the message, never NULL (can be this peer's identity for loopback) | ||
220 | * @param notify_size how many bytes of buffer space does @a notify want? | ||
221 | * @param notify function to call when buffer space is available; | ||
222 | * will be called with NULL on timeout; clients MUST cancel | ||
223 | * all pending transmission requests DURING the disconnect | ||
224 | * handler | ||
225 | * @param notify_cls closure for @a notify | ||
226 | * @return non-NULL if the notify callback was queued, | ||
227 | * NULL if we can not even queue the request (request already pending); | ||
228 | * if NULL is returned, @a notify will NOT be called. | ||
229 | */ | ||
230 | struct GNUNET_CORE_TransmitHandle * | ||
231 | GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, | ||
232 | int cork, | ||
233 | enum GNUNET_CORE_Priority priority, | ||
234 | struct GNUNET_TIME_Relative maxdelay, | ||
235 | const struct GNUNET_PeerIdentity *target, | ||
236 | size_t notify_size, | ||
237 | GNUNET_CONNECTION_TransmitReadyNotify notify, | ||
238 | void *notify_cls); | ||
239 | |||
240 | |||
241 | /** | ||
242 | * Cancel the specified transmission-ready notification. | ||
243 | * | ||
244 | * @param th handle that was returned by #GNUNET_CORE_notify_transmit_ready(). | ||
245 | */ | ||
246 | void | ||
247 | GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th); | ||
248 | |||
249 | |||
250 | /** | ||
251 | * Handle to a CORE monitoring operation. | 200 | * Handle to a CORE monitoring operation. |
252 | */ | 201 | */ |
253 | struct GNUNET_CORE_MonitorHandle; | 202 | struct GNUNET_CORE_MonitorHandle; |