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 ++++++++++ src/include/gnunet_transport_communication_service.h | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/include') 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 */ { diff --git a/src/include/gnunet_transport_communication_service.h b/src/include/gnunet_transport_communication_service.h index 2997c1860..307f6688a 100644 --- a/src/include/gnunet_transport_communication_service.h +++ b/src/include/gnunet_transport_communication_service.h @@ -243,7 +243,6 @@ enum GNUNET_TRANSPORT_ConnectionStatus { * @param mtu maximum message size supported by queue, 0 if * sending is not supported, SIZE_MAX for no MTU * @param nt which network type does the @a address belong to? - * @param distance how many hops does this queue use (DV-only)? * @param cs what is the connection status of the queue? * @param mq message queue of the @a peer * @return API handle identifying the new MQ @@ -254,7 +253,6 @@ GNUNET_TRANSPORT_communicator_mq_add (struct GNUNET_TRANSPORT_CommunicatorHandle const char *address, uint32_t mtu, enum GNUNET_NetworkType nt, - uint32_t distance, enum GNUNET_TRANSPORT_ConnectionStatus cs, struct GNUNET_MQ_Handle *mq); -- cgit v1.2.3