diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-21 14:14:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-21 14:14:42 +0100 |
commit | 634aea297cc983c3d70f65a004f698f215abe590 (patch) | |
tree | c337abee0cf6e15b14785efcfc6cec49883a92b7 /src/include | |
parent | 7ed02994541af600b0d080829e944ab414445dcc (diff) | |
download | gnunet-634aea297cc983c3d70f65a004f698f215abe590.tar.gz gnunet-634aea297cc983c3d70f65a004f698f215abe590.zip |
more work on tng
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_hello_lib.h | 10 | ||||
-rw-r--r-- | src/include/gnunet_transport_communication_service.h | 2 |
2 files changed, 10 insertions, 2 deletions
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, | |||
520 | struct GNUNET_TIME_Absolute *expiration); | 520 | struct GNUNET_TIME_Absolute *expiration); |
521 | 521 | ||
522 | 522 | ||
523 | /** | ||
524 | * Given an address as a string, extract the prefix that identifies | ||
525 | * the communicator offering transmissions to that address. | ||
526 | * | ||
527 | * @param address a peer's address | ||
528 | * @return NULL if the address is mal-formed, otherwise the prefix | ||
529 | */ | ||
530 | char * | ||
531 | GNUNET_HELLO_address_to_prefix (const char *address); | ||
532 | |||
523 | 533 | ||
524 | #if 0 /* keep Emacsens' auto-indent happy */ | 534 | #if 0 /* keep Emacsens' auto-indent happy */ |
525 | { | 535 | { |
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 { | |||
243 | * @param mtu maximum message size supported by queue, 0 if | 243 | * @param mtu maximum message size supported by queue, 0 if |
244 | * sending is not supported, SIZE_MAX for no MTU | 244 | * sending is not supported, SIZE_MAX for no MTU |
245 | * @param nt which network type does the @a address belong to? | 245 | * @param nt which network type does the @a address belong to? |
246 | * @param distance how many hops does this queue use (DV-only)? | ||
247 | * @param cs what is the connection status of the queue? | 246 | * @param cs what is the connection status of the queue? |
248 | * @param mq message queue of the @a peer | 247 | * @param mq message queue of the @a peer |
249 | * @return API handle identifying the new MQ | 248 | * @return API handle identifying the new MQ |
@@ -254,7 +253,6 @@ GNUNET_TRANSPORT_communicator_mq_add (struct GNUNET_TRANSPORT_CommunicatorHandle | |||
254 | const char *address, | 253 | const char *address, |
255 | uint32_t mtu, | 254 | uint32_t mtu, |
256 | enum GNUNET_NetworkType nt, | 255 | enum GNUNET_NetworkType nt, |
257 | uint32_t distance, | ||
258 | enum GNUNET_TRANSPORT_ConnectionStatus cs, | 256 | enum GNUNET_TRANSPORT_ConnectionStatus cs, |
259 | struct GNUNET_MQ_Handle *mq); | 257 | struct GNUNET_MQ_Handle *mq); |
260 | 258 | ||