diff options
author | Willow Liquorice <willow@howhill.com> | 2022-08-31 22:26:52 +0100 |
---|---|---|
committer | Willow Liquorice <willow@howhill.com> | 2022-10-03 00:44:23 +0100 |
commit | 7b4d69a64e7390e57439c04e1e43e3ca78fc7bbe (patch) | |
tree | 9ad40b25e563f0af5f67c7117bb8538c9002cd34 /src | |
parent | fc4006ab91e21c8d3e30b516b6526531ad2e5cbf (diff) | |
download | gnunet-7b4d69a64e7390e57439c04e1e43e3ca78fc7bbe.tar.gz gnunet-7b4d69a64e7390e57439c04e1e43e3ca78fc7bbe.zip |
-DOC: Pass through HELLO library
Diffstat (limited to 'src')
-rw-r--r-- | src/hello/address.c | 18 | ||||
-rw-r--r-- | src/hello/hello.c | 22 |
2 files changed, 0 insertions, 40 deletions
diff --git a/src/hello/address.c b/src/hello/address.c index e22f3850f..6a1b68029 100644 --- a/src/hello/address.c +++ b/src/hello/address.c | |||
@@ -59,16 +59,6 @@ GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address *address) | |||
59 | } | 59 | } |
60 | 60 | ||
61 | 61 | ||
62 | /** | ||
63 | * Allocate an address struct. | ||
64 | * | ||
65 | * @param peer the peer | ||
66 | * @param transport_name plugin name | ||
67 | * @param address binary address | ||
68 | * @param address_length number of bytes in 'address' | ||
69 | * @param local_info additional local information for the address | ||
70 | * @return the address struct | ||
71 | */ | ||
72 | struct GNUNET_HELLO_Address * | 62 | struct GNUNET_HELLO_Address * |
73 | GNUNET_HELLO_address_allocate (const struct GNUNET_PeerIdentity *peer, | 63 | GNUNET_HELLO_address_allocate (const struct GNUNET_PeerIdentity *peer, |
74 | const char *transport_name, | 64 | const char *transport_name, |
@@ -118,14 +108,6 @@ GNUNET_HELLO_address_copy (const struct GNUNET_HELLO_Address *address) | |||
118 | } | 108 | } |
119 | 109 | ||
120 | 110 | ||
121 | /** | ||
122 | * Compare two addresses. Does NOT compare the peer identity, | ||
123 | * that is assumed already to match! | ||
124 | * | ||
125 | * @param a1 first address | ||
126 | * @param a2 second address | ||
127 | * @return 0 if the addresses are equal, -1 if a1<a2, 1 if a1>a2. | ||
128 | */ | ||
129 | int | 111 | int |
130 | GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1, | 112 | GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1, |
131 | const struct GNUNET_HELLO_Address *a2) | 113 | const struct GNUNET_HELLO_Address *a2) |
diff --git a/src/hello/hello.c b/src/hello/hello.c index 12b576ceb..45d27c5d4 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c | |||
@@ -511,15 +511,6 @@ merge_addr (void *cls, | |||
511 | } | 511 | } |
512 | 512 | ||
513 | 513 | ||
514 | /** | ||
515 | * Construct a HELLO message by merging the | ||
516 | * addresses in two existing HELLOs (which | ||
517 | * must be for the same peer). | ||
518 | * | ||
519 | * @param h1 first HELLO message | ||
520 | * @param h2 the second HELLO message | ||
521 | * @return the combined HELLO message | ||
522 | */ | ||
523 | struct GNUNET_HELLO_Message * | 514 | struct GNUNET_HELLO_Message * |
524 | GNUNET_HELLO_merge (const struct GNUNET_HELLO_Message *h1, | 515 | GNUNET_HELLO_merge (const struct GNUNET_HELLO_Message *h1, |
525 | const struct GNUNET_HELLO_Message *h2) | 516 | const struct GNUNET_HELLO_Message *h2) |
@@ -606,19 +597,6 @@ delta_match (void *cls, | |||
606 | } | 597 | } |
607 | 598 | ||
608 | 599 | ||
609 | /** | ||
610 | * Iterate over addresses in @a new_hello that are NOT already present | ||
611 | * in @a old_hello. Note that if the address is present in @a old_hello | ||
612 | * but the expiration time in @a new_hello is more recent, the iterator | ||
613 | * is also called. | ||
614 | * | ||
615 | * @param new_hello a HELLO message | ||
616 | * @param old_hello a HELLO message | ||
617 | * @param expiration_limit ignore addresses in @a old_hello | ||
618 | * that expired before the given time stamp | ||
619 | * @param it iterator to call on each address | ||
620 | * @param it_cls closure for @a it | ||
621 | */ | ||
622 | void | 600 | void |
623 | GNUNET_HELLO_iterate_new_addresses (const struct | 601 | GNUNET_HELLO_iterate_new_addresses (const struct |
624 | GNUNET_HELLO_Message *new_hello, | 602 | GNUNET_HELLO_Message *new_hello, |