summaryrefslogtreecommitdiff
path: root/src/gnunet_chat_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_util.h')
-rw-r--r--src/gnunet_chat_util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gnunet_chat_util.h b/src/gnunet_chat_util.h
index 8845eab..9229586 100644
--- a/src/gnunet_chat_util.h
+++ b/src/gnunet_chat_util.h
@@ -32,6 +32,8 @@
#include <gnunet/gnunet_messenger_service.h>
#include <gnunet/gnunet_util_lib.h>
+#include "gnunet_chat_lib.h"
+
/**
* Enum for the types of chat contexts.
*/
@@ -185,4 +187,15 @@ int
util_lobby_name (const struct GNUNET_HashCode *hash,
char **name);
+/**
+ * Return the chat related kind for a messages original kind
+ * from the service. It will return #GNUNET_CHAT_KIND_UNKNOWN
+ * in case the message kind is not supported.
+ *
+ * @param[in] kind Messenger service message kind
+ * @return Chat message kind or #GNUNET_CHAT_KIND_UNKNOWN_
+ */
+enum GNUNET_CHAT_MessageKind
+util_message_kind_from_kind (enum GNUNET_MESSENGER_MessageKind kind);
+
#endif /* GNUNET_CHAT_UTIL_H_ */