aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-01-14 13:07:25 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-01-14 13:07:25 +0000
commite80da3ab091fdaaf65222689d10e73ef210b5f23 (patch)
treed69c693908593982a0ff9df152dc07c5211257f5 /src/include
parent30c72242b0d5c9ee30a08fae7e69b723450e2899 (diff)
downloadgnunet-e80da3ab091fdaaf65222689d10e73ef210b5f23.tar.gz
gnunet-e80da3ab091fdaaf65222689d10e73ef210b5f23.zip
additional function to check option
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_hello_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h
index 14669d417..9766632e5 100644
--- a/src/include/gnunet_hello_lib.h
+++ b/src/include/gnunet_hello_lib.h
@@ -160,6 +160,17 @@ GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1,
160size_t 160size_t
161GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address *address); 161GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address *address);
162 162
163/**
164 * Check if an address has a local option set
165 *
166 * @param address the address to check
167 * @param option the respective option to check for
168 * @return GNUNET_YES or GNUNET_NO
169 */
170int
171GNUNET_HELLO_address_check_option (const struct GNUNET_HELLO_Address * address,
172 enum GNUNET_HELLO_AddressInfo option);
173
163 174
164/** 175/**
165 * Free an address. 176 * Free an address.