From 634aea297cc983c3d70f65a004f698f215abe590 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Jan 2019 14:14:42 +0100 Subject: more work on tng --- src/include/gnunet_hello_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/gnunet_hello_lib.h') diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index a1b97809e..c2256fd0a 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h @@ -520,6 +520,16 @@ GNUNET_HELLO_extract_address (const void *raw, struct GNUNET_TIME_Absolute *expiration); +/** + * Given an address as a string, extract the prefix that identifies + * the communicator offering transmissions to that address. + * + * @param address a peer's address + * @return NULL if the address is mal-formed, otherwise the prefix + */ +char * +GNUNET_HELLO_address_to_prefix (const char *address); + #if 0 /* keep Emacsens' auto-indent happy */ { -- cgit v1.2.3