From 16a6919a9f98ee9fa1fee9dd262906c321004a19 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Aug 2011 16:03:20 +0000 Subject: even nicer indentation, thanks to LRN's indent patch --- src/include/gnunet_peerinfo_service.h | 49 ++++++++++++++--------------------- 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'src/include/gnunet_peerinfo_service.h') diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h index 2013eb60f..50bbc458a 100644 --- a/src/include/gnunet_peerinfo_service.h +++ b/src/include/gnunet_peerinfo_service.h @@ -54,9 +54,8 @@ struct GNUNET_PEERINFO_Handle; * @return NULL on error (configuration related, actual connection * etablishment may happen asynchronously). */ -struct GNUNET_PEERINFO_Handle *GNUNET_PEERINFO_connect (const struct - GNUNET_CONFIGURATION_Handle - *cfg); +struct GNUNET_PEERINFO_Handle * +GNUNET_PEERINFO_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); @@ -69,7 +68,8 @@ struct GNUNET_PEERINFO_Handle *GNUNET_PEERINFO_connect (const struct * * @param h handle to disconnect */ -void GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); +void +GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); /** @@ -83,8 +83,9 @@ void GNUNET_PEERINFO_disconnect (struct GNUNET_PEERINFO_Handle *h); * @param h handle to the peerinfo service * @param hello the verified (!) HELLO message */ -void GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, - const struct GNUNET_HELLO_Message *hello); +void +GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, + const struct GNUNET_HELLO_Message *hello); /** @@ -126,19 +127,12 @@ struct GNUNET_PEERINFO_IteratorContext; * @return NULL on error (in this case, 'callback' is never called!), * otherwise an iterator context */ -struct GNUNET_PEERINFO_IteratorContext *GNUNET_PEERINFO_iterate (struct - GNUNET_PEERINFO_Handle - *h, - const struct - GNUNET_PeerIdentity - *peer, - struct - GNUNET_TIME_Relative - timeout, - GNUNET_PEERINFO_Processor - callback, - void - *callback_cls); +struct GNUNET_PEERINFO_IteratorContext * +GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, + const struct GNUNET_PeerIdentity *peer, + struct GNUNET_TIME_Relative timeout, + GNUNET_PEERINFO_Processor callback, + void *callback_cls); @@ -147,8 +141,8 @@ struct GNUNET_PEERINFO_IteratorContext *GNUNET_PEERINFO_iterate (struct * * @param ic context of the iterator to cancel */ -void GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext - *ic); +void +GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic); @@ -170,13 +164,9 @@ struct GNUNET_PEERINFO_NotifyContext; * @param callback_cls closure for callback * @return NULL on error */ -struct GNUNET_PEERINFO_NotifyContext *GNUNET_PEERINFO_notify (const struct - GNUNET_CONFIGURATION_Handle - *cfg, - GNUNET_PEERINFO_Processor - callback, - void - *callback_cls); +struct GNUNET_PEERINFO_NotifyContext * +GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg, + GNUNET_PEERINFO_Processor callback, void *callback_cls); /** @@ -184,7 +174,8 @@ struct GNUNET_PEERINFO_NotifyContext *GNUNET_PEERINFO_notify (const struct * * @param nc context to stop notifying */ -void GNUNET_PEERINFO_notify_cancel (struct GNUNET_PEERINFO_NotifyContext *nc); +void +GNUNET_PEERINFO_notify_cancel (struct GNUNET_PEERINFO_NotifyContext *nc); #if 0 /* keep Emacsens' auto-indent happy */ -- cgit v1.2.3