diff options
Diffstat (limited to 'src/hello')
-rw-r--r-- | src/hello/address.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/hello/address.c b/src/hello/address.c index 5cfa10185..b511ca9df 100644 --- a/src/hello/address.c +++ b/src/hello/address.c | |||
@@ -63,6 +63,21 @@ GNUNET_HELLO_address_allocate (const struct GNUNET_PeerIdentity *peer, | |||
63 | 63 | ||
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Get the size of an address struct. | ||
67 | * | ||
68 | * @param address address | ||
69 | * @return the size | ||
70 | */ | ||
71 | size_t | ||
72 | GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address *address) | ||
73 | { | ||
74 | return sizeof (struct GNUNET_HELLO_Address) + | ||
75 | address->address_length + | ||
76 | strlen(address->transport_name) + 1; | ||
77 | } | ||
78 | |||
79 | |||
80 | /** | ||
66 | * Copy an address struct. | 81 | * Copy an address struct. |
67 | * | 82 | * |
68 | * @param address address to copy | 83 | * @param address address to copy |