diff options
Diffstat (limited to 'src/include/gnunet_transport_communication_service.h')
-rw-r--r-- | src/include/gnunet_transport_communication_service.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/include/gnunet_transport_communication_service.h b/src/include/gnunet_transport_communication_service.h index e7c8be0c6..f4dfc8745 100644 --- a/src/include/gnunet_transport_communication_service.h +++ b/src/include/gnunet_transport_communication_service.h | |||
@@ -87,7 +87,8 @@ struct GNUNET_TRANSPORT_CommunicatorHandle; | |||
87 | * FIXME: may want to distinguish bi-directional as well, | 87 | * FIXME: may want to distinguish bi-directional as well, |
88 | * should we define a bit for that? Needed in DV logic (handle_dv_learn)! | 88 | * should we define a bit for that? Needed in DV logic (handle_dv_learn)! |
89 | */ | 89 | */ |
90 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics { | 90 | enum GNUNET_TRANSPORT_CommunicatorCharacteristics |
91 | { | ||
91 | /** | 92 | /** |
92 | * Characteristics are unknown (i.e. DV). | 93 | * Characteristics are unknown (i.e. DV). |
93 | */ | 94 | */ |
@@ -143,7 +144,7 @@ typedef void (*GNUNET_TRANSPORT_CommunicatorNotify) ( | |||
143 | * @return NULL on error | 144 | * @return NULL on error |
144 | */ | 145 | */ |
145 | struct GNUNET_TRANSPORT_CommunicatorHandle * | 146 | struct GNUNET_TRANSPORT_CommunicatorHandle * |
146 | GNUNET_TRANSPORT_communicator_connect( | 147 | GNUNET_TRANSPORT_communicator_connect ( |
147 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 148 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
148 | const char *config_section_name, | 149 | const char *config_section_name, |
149 | const char *addr_prefix, | 150 | const char *addr_prefix, |
@@ -160,7 +161,7 @@ GNUNET_TRANSPORT_communicator_connect( | |||
160 | * @param ch handle returned from connect | 161 | * @param ch handle returned from connect |
161 | */ | 162 | */ |
162 | void | 163 | void |
163 | GNUNET_TRANSPORT_communicator_disconnect( | 164 | GNUNET_TRANSPORT_communicator_disconnect ( |
164 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch); | 165 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch); |
165 | 166 | ||
166 | 167 | ||
@@ -200,7 +201,7 @@ typedef void (*GNUNET_TRANSPORT_MessageCompletedCallback) (void *cls, | |||
200 | * the tranport service is not yet up | 201 | * the tranport service is not yet up |
201 | */ | 202 | */ |
202 | int | 203 | int |
203 | GNUNET_TRANSPORT_communicator_receive( | 204 | GNUNET_TRANSPORT_communicator_receive ( |
204 | struct GNUNET_TRANSPORT_CommunicatorHandle *handle, | 205 | struct GNUNET_TRANSPORT_CommunicatorHandle *handle, |
205 | const struct GNUNET_PeerIdentity *sender, | 206 | const struct GNUNET_PeerIdentity *sender, |
206 | const struct GNUNET_MessageHeader *msg, | 207 | const struct GNUNET_MessageHeader *msg, |
@@ -221,7 +222,8 @@ struct GNUNET_TRANSPORT_QueueHandle; | |||
221 | /** | 222 | /** |
222 | * Possible states of a connection. | 223 | * Possible states of a connection. |
223 | */ | 224 | */ |
224 | enum GNUNET_TRANSPORT_ConnectionStatus { | 225 | enum GNUNET_TRANSPORT_ConnectionStatus |
226 | { | ||
225 | /** | 227 | /** |
226 | * Connection is down. | 228 | * Connection is down. |
227 | */ | 229 | */ |
@@ -255,7 +257,7 @@ enum GNUNET_TRANSPORT_ConnectionStatus { | |||
255 | * @return API handle identifying the new MQ | 257 | * @return API handle identifying the new MQ |
256 | */ | 258 | */ |
257 | struct GNUNET_TRANSPORT_QueueHandle * | 259 | struct GNUNET_TRANSPORT_QueueHandle * |
258 | GNUNET_TRANSPORT_communicator_mq_add( | 260 | GNUNET_TRANSPORT_communicator_mq_add ( |
259 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, | 261 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, |
260 | const struct GNUNET_PeerIdentity *peer, | 262 | const struct GNUNET_PeerIdentity *peer, |
261 | const char *address, | 263 | const char *address, |
@@ -272,7 +274,7 @@ GNUNET_TRANSPORT_communicator_mq_add( | |||
272 | * @param qh handle for the queue that must be invalidated | 274 | * @param qh handle for the queue that must be invalidated |
273 | */ | 275 | */ |
274 | void | 276 | void |
275 | GNUNET_TRANSPORT_communicator_mq_del(struct GNUNET_TRANSPORT_QueueHandle *qh); | 277 | GNUNET_TRANSPORT_communicator_mq_del (struct GNUNET_TRANSPORT_QueueHandle *qh); |
276 | 278 | ||
277 | 279 | ||
278 | /** | 280 | /** |
@@ -292,7 +294,7 @@ struct GNUNET_TRANSPORT_AddressIdentifier; | |||
292 | * @param expiration when does the communicator forsee this address expiring? | 294 | * @param expiration when does the communicator forsee this address expiring? |
293 | */ | 295 | */ |
294 | struct GNUNET_TRANSPORT_AddressIdentifier * | 296 | struct GNUNET_TRANSPORT_AddressIdentifier * |
295 | GNUNET_TRANSPORT_communicator_address_add( | 297 | GNUNET_TRANSPORT_communicator_address_add ( |
296 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, | 298 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, |
297 | const char *address, | 299 | const char *address, |
298 | enum GNUNET_NetworkType nt, | 300 | enum GNUNET_NetworkType nt, |
@@ -306,7 +308,7 @@ GNUNET_TRANSPORT_communicator_address_add( | |||
306 | * @param ai address that is no longer provided | 308 | * @param ai address that is no longer provided |
307 | */ | 309 | */ |
308 | void | 310 | void |
309 | GNUNET_TRANSPORT_communicator_address_remove( | 311 | GNUNET_TRANSPORT_communicator_address_remove ( |
310 | struct GNUNET_TRANSPORT_AddressIdentifier *ai); | 312 | struct GNUNET_TRANSPORT_AddressIdentifier *ai); |
311 | 313 | ||
312 | 314 | ||
@@ -329,7 +331,7 @@ GNUNET_TRANSPORT_communicator_address_remove( | |||
329 | * notify-API to @a pid's communicator @a comm | 331 | * notify-API to @a pid's communicator @a comm |
330 | */ | 332 | */ |
331 | void | 333 | void |
332 | GNUNET_TRANSPORT_communicator_notify( | 334 | GNUNET_TRANSPORT_communicator_notify ( |
333 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, | 335 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch, |
334 | const struct GNUNET_PeerIdentity *pid, | 336 | const struct GNUNET_PeerIdentity *pid, |
335 | const char *comm, | 337 | const char *comm, |