From 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 15 Aug 2011 21:51:21 +0000 Subject: indentation --- src/include/gnunet_hello_lib.h | 72 ++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 41 deletions(-) (limited to 'src/include/gnunet_hello_lib.h') diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index a3e4ba0f0..3c44b5048 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h @@ -60,18 +60,11 @@ struct GNUNET_HELLO_Message; * @return number of bytes copied, 0 if * the target buffer was not big enough. */ -size_t - - - - - - - -GNUNET_HELLO_add_address (const char *tname, - struct GNUNET_TIME_Absolute expiration, - const void *addr, - uint16_t addr_len, char *target, size_t max); +size_t GNUNET_HELLO_add_address (const char *tname, + struct GNUNET_TIME_Absolute + expiration, const void *addr, + uint16_t addr_len, char *target, + size_t max); /** @@ -85,9 +78,9 @@ GNUNET_HELLO_add_address (const char *tname, * @return number of bytes written, 0 to signal the * end of the iteration. */ -typedef size_t - (*GNUNET_HELLO_GenerateAddressListCallback) (void *cls, - size_t max, void *buf); +typedef size_t (*GNUNET_HELLO_GenerateAddressListCallback) (void *cls, + size_t max, + void *buf); /** @@ -143,11 +136,12 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_merge (const struct * zero if the some addresses with expirations >= now * do not match at all */ -struct GNUNET_TIME_Absolute -GNUNET_HELLO_equals (const struct - GNUNET_HELLO_Message *h1, - const struct - GNUNET_HELLO_Message *h2, struct GNUNET_TIME_Absolute now); +struct GNUNET_TIME_Absolute GNUNET_HELLO_equals (const struct + GNUNET_HELLO_Message *h1, + const struct + GNUNET_HELLO_Message *h2, + struct GNUNET_TIME_Absolute + now); /** @@ -162,11 +156,10 @@ GNUNET_HELLO_equals (const struct * GNUNET_NO to delete it from the HELLO * GNUNET_SYSERR to stop iterating (but keep current address) */ -typedef int - (*GNUNET_HELLO_AddressIterator) (void *cls, - const char *tname, - struct GNUNET_TIME_Absolute expiration, - const void *addr, uint16_t addrlen); +typedef int (*GNUNET_HELLO_AddressIterator) (void *cls, const char *tname, + struct GNUNET_TIME_Absolute + expiration, const void *addr, + uint16_t addrlen); /** @@ -201,15 +194,14 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_iterate_addresses (const struct * @param it iterator to call on each address * @param it_cls closure for it */ -void -GNUNET_HELLO_iterate_new_addresses (const struct GNUNET_HELLO_Message - *new_hello, - const struct GNUNET_HELLO_Message - *old_hello, - struct GNUNET_TIME_Absolute - expiration_limit, - GNUNET_HELLO_AddressIterator it, - void *it_cls); +void GNUNET_HELLO_iterate_new_addresses (const struct GNUNET_HELLO_Message + *new_hello, + const struct GNUNET_HELLO_Message + *old_hello, + struct GNUNET_TIME_Absolute + expiration_limit, + GNUNET_HELLO_AddressIterator it, + void *it_cls); /** @@ -219,10 +211,9 @@ GNUNET_HELLO_iterate_new_addresses (const struct GNUNET_HELLO_Message * @param publicKey where to copy the public key information, can be NULL * @return GNUNET_SYSERR if the HELLO was malformed */ -int -GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello, - struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded - *publicKey); +int GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello, + struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded + *publicKey); /** @@ -232,9 +223,8 @@ GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello, * @param peer where to store the peer's identity * @return GNUNET_SYSERR if the HELLO was malformed */ -int -GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, - struct GNUNET_PeerIdentity *peer); +int GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, + struct GNUNET_PeerIdentity *peer); /** -- cgit v1.2.3