diff options
Diffstat (limited to 'src/messenger/messenger_api_util.h')
-rw-r--r-- | src/messenger/messenger_api_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/messenger/messenger_api_util.h b/src/messenger/messenger_api_util.h index c70a3601f..af562a1e8 100644 --- a/src/messenger/messenger_api_util.h +++ b/src/messenger/messenger_api_util.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "gnunet_crypto_lib.h" | 32 | #include "gnunet_crypto_lib.h" |
33 | #include "gnunet_disk_lib.h" | 33 | #include "gnunet_disk_lib.h" |
34 | #include "gnunet_identity_service.h" | 34 | #include "gnunet_identity_service.h" |
35 | #include "gnunet_messenger_service.h" | ||
35 | 36 | ||
36 | /** | 37 | /** |
37 | * Starts an urgent task to close a CADET channel asynchronously. | 38 | * Starts an urgent task to close a CADET channel asynchronously. |
@@ -61,4 +62,17 @@ generate_free_member_id (struct GNUNET_ShortHashCode *id, const struct GNUNET_CO | |||
61 | const struct GNUNET_IDENTITY_PublicKey* | 62 | const struct GNUNET_IDENTITY_PublicKey* |
62 | get_anonymous_public_key (); | 63 | get_anonymous_public_key (); |
63 | 64 | ||
65 | /** | ||
66 | * Converts a Messenger service key of a room to the specific port which | ||
67 | * gets used for the CADET channels. | ||
68 | * | ||
69 | * The port includes upper bits of the #GNUNET_MESSENGER_VERSION to | ||
70 | * reduce the chance of incompatible connections. | ||
71 | * | ||
72 | * @param[in] key Messenger service room key | ||
73 | * @param[out] port CADET service port | ||
74 | */ | ||
75 | void | ||
76 | convert_messenger_key_to_port(const struct GNUNET_HashCode *key, struct GNUNET_HashCode *port); | ||
77 | |||
64 | #endif //GNUNET_SERVICE_MESSENGER_UTIL_H | 78 | #endif //GNUNET_SERVICE_MESSENGER_UTIL_H |