aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_core_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:51:21 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:51:21 +0000
commit6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (patch)
treeedbc42f37889069033e57da201fef242939a6e0f /src/include/gnunet_core_service.h
parent502af2167f7c218366666ca4944bd7cc54b5b19a (diff)
downloadgnunet-6fd3e715cae09fa6e657c96f1c6f9711ee51f42f.tar.gz
gnunet-6fd3e715cae09fa6e657c96f1c6f9711ee51f42f.zip
indentation
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r--src/include/gnunet_core_service.h85
1 files changed, 42 insertions, 43 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h
index 1bf82030d..94272a30a 100644
--- a/src/include/gnunet_core_service.h
+++ b/src/include/gnunet_core_service.h
@@ -116,12 +116,14 @@ typedef void (*GNUNET_CORE_DisconnectEventHandler) (void *cls,
116 * @return GNUNET_OK to keep the connection open, 116 * @return GNUNET_OK to keep the connection open,
117 * GNUNET_SYSERR to close it (signal serious error) 117 * GNUNET_SYSERR to close it (signal serious error)
118 */ 118 */
119typedef int 119typedef int (*GNUNET_CORE_MessageCallback) (void *cls,
120 (*GNUNET_CORE_MessageCallback) (void *cls, 120 const struct GNUNET_PeerIdentity *
121 const struct GNUNET_PeerIdentity * other, 121 other,
122 const struct GNUNET_MessageHeader * message, 122 const struct GNUNET_MessageHeader *
123 const struct 123 message,
124 GNUNET_TRANSPORT_ATS_Information * atsi); 124 const struct
125 GNUNET_TRANSPORT_ATS_Information *
126 atsi);
125 127
126 128
127/** 129/**
@@ -162,14 +164,13 @@ struct GNUNET_CORE_MessageHandler
162 * @param my_identity ID of this peer, NULL if we failed 164 * @param my_identity ID of this peer, NULL if we failed
163 * @param publicKey public key of this peer, NULL if we failed 165 * @param publicKey public key of this peer, NULL if we failed
164 */ 166 */
165typedef void 167typedef void (*GNUNET_CORE_StartupCallback) (void *cls,
166 (*GNUNET_CORE_StartupCallback) (void *cls, 168 struct GNUNET_CORE_Handle * server,
167 struct GNUNET_CORE_Handle * server, 169 const struct GNUNET_PeerIdentity *
168 const struct GNUNET_PeerIdentity * 170 my_identity,
169 my_identity, 171 const struct
170 const struct 172 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded
171 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded * 173 * publicKey);
172 publicKey);
173 174
174 175
175/** 176/**
@@ -308,9 +309,9 @@ struct GNUNET_CORE_PeerRequestHandle *GNUNET_CORE_peer_request_connect (struct
308 * 309 *
309 * @param req request handle that was returned for the original request 310 * @param req request handle that was returned for the original request
310 */ 311 */
311void 312void GNUNET_CORE_peer_request_connect_cancel (struct
312GNUNET_CORE_peer_request_connect_cancel (struct GNUNET_CORE_PeerRequestHandle 313 GNUNET_CORE_PeerRequestHandle
313 *req); 314 *req);
314 315
315 316
316/** 317/**
@@ -325,16 +326,18 @@ GNUNET_CORE_peer_request_connect_cancel (struct GNUNET_CORE_PeerRequestHandle
325 * long should the client wait until re-trying? 326 * long should the client wait until re-trying?
326 * @param preference current traffic preference for the given peer 327 * @param preference current traffic preference for the given peer
327 */ 328 */
328typedef void 329typedef void (*GNUNET_CORE_PeerConfigurationInfoCallback) (void *cls,
329 (*GNUNET_CORE_PeerConfigurationInfoCallback) (void *cls, 330 const struct
330 const struct 331 GNUNET_PeerIdentity *
331 GNUNET_PeerIdentity * peer, 332 peer,
332 struct 333 struct
333 GNUNET_BANDWIDTH_Value32NBO 334 GNUNET_BANDWIDTH_Value32NBO
334 bandwidth_out, int32_t amount, 335 bandwidth_out,
335 struct GNUNET_TIME_Relative 336 int32_t amount,
336 res_delay, 337 struct
337 uint64_t preference); 338 GNUNET_TIME_Relative
339 res_delay,
340 uint64_t preference);
338 341
339 342
340 343
@@ -391,10 +394,9 @@ struct GNUNET_CORE_InformationRequestContext
391 * 394 *
392 * @param irc context returned by the original GNUNET_CORE_peer_get_info call 395 * @param irc context returned by the original GNUNET_CORE_peer_get_info call
393 */ 396 */
394void 397void GNUNET_CORE_peer_change_preference_cancel (struct
395GNUNET_CORE_peer_change_preference_cancel (struct 398 GNUNET_CORE_InformationRequestContext
396 GNUNET_CORE_InformationRequestContext 399 *irc);
397 *irc);
398 400
399 401
400/** 402/**
@@ -405,10 +407,9 @@ GNUNET_CORE_peer_change_preference_cancel (struct
405 * @param cb_cls closure for peer_cb 407 * @param cb_cls closure for peer_cb
406 * @return GNUNET_OK on success, GNUNET_SYSERR on errors 408 * @return GNUNET_OK on success, GNUNET_SYSERR on errors
407 */ 409 */
408int 410int GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg,
409GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg, 411 GNUNET_CORE_ConnectEventHandler peer_cb,
410 GNUNET_CORE_ConnectEventHandler peer_cb, 412 void *cb_cls);
411 void *cb_cls);
412 413
413/** 414/**
414 * Iterate over all currently connected peers. 415 * Iterate over all currently connected peers.
@@ -423,11 +424,10 @@ GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg,
423 * 424 *
424 * @return GNUNET_OK if iterating, GNUNET_SYSERR on error 425 * @return GNUNET_OK if iterating, GNUNET_SYSERR on error
425 */ 426 */
426int 427int GNUNET_CORE_is_peer_connected (const struct GNUNET_CONFIGURATION_Handle
427GNUNET_CORE_is_peer_connected (const struct GNUNET_CONFIGURATION_Handle *cfg, 428 *cfg, struct GNUNET_PeerIdentity *peer,
428 struct GNUNET_PeerIdentity *peer, 429 GNUNET_CORE_ConnectEventHandler peer_cb,
429 GNUNET_CORE_ConnectEventHandler peer_cb, 430 void *cb_cls);
430 void *cb_cls);
431 431
432 432
433/** 433/**
@@ -490,9 +490,8 @@ struct GNUNET_CORE_TransmitHandle *GNUNET_CORE_notify_transmit_ready (struct
490 * 490 *
491 * @param th handle that was returned by "notify_transmit_ready". 491 * @param th handle that was returned by "notify_transmit_ready".
492 */ 492 */
493void 493void GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle
494GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle 494 *th);
495 *th);
496 495
497 496
498#if 0 /* keep Emacsens' auto-indent happy */ 497#if 0 /* keep Emacsens' auto-indent happy */