aboutsummaryrefslogtreecommitdiff
path: root/src/hello
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-29 09:37:54 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-29 09:37:54 +0000
commit623df97886da9ee06724b7860a1a2463737b750e (patch)
treea7638265a42b7b276d10403078411e4f4d8973d8 /src/hello
parent51b7d6d6e0d50e77a3fc948af68ae02f325684ac (diff)
downloadgnunet-623df97886da9ee06724b7860a1a2463737b750e.tar.gz
gnunet-623df97886da9ee06724b7860a1a2463737b750e.zip
first steps to transport_api cleanup
compiles but no guarante to work!
Diffstat (limited to 'src/hello')
-rw-r--r--src/hello/address.c15
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 */
71size_t
72GNUNET_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