aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_hello_lib.h
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/gnunet_hello_lib.h
parent30c72242b0d5c9ee30a08fae7e69b723450e2899 (diff)
additional function to check option
Diffstat (limited to 'src/include/gnunet_hello_lib.h')
-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 14669d4175..9766632e54 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,
size_t
GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address *address);
+/**
+ * Check if an address has a local option set
+ *
+ * @param address the address to check
+ * @param option the respective option to check for
+ * @return GNUNET_YES or GNUNET_NO
+ */
+int
+GNUNET_HELLO_address_check_option (const struct GNUNET_HELLO_Address * address,
+ enum GNUNET_HELLO_AddressInfo option);
+
/**
* Free an address.