aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_invitation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_invitation.h')
-rw-r--r--src/gnunet_chat_invitation.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gnunet_chat_invitation.h b/src/gnunet_chat_invitation.h
index 433131e..a0d76de 100644
--- a/src/gnunet_chat_invitation.h
+++ b/src/gnunet_chat_invitation.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -42,10 +42,23 @@ struct GNUNET_CHAT_Invitation
42 GNUNET_PEER_Id door; 42 GNUNET_PEER_Id door;
43}; 43};
44 44
45/**
46 * Creates a chat invitation from a invite body in a
47 * <i>message</i> with a selected chat <i>context</i>.
48 *
49 * @param[in,out] context Chat context
50 * @param[in] message Invite message body
51 * @return New chat invitation
52 */
45struct GNUNET_CHAT_Invitation* 53struct GNUNET_CHAT_Invitation*
46invitation_create_from_message (struct GNUNET_CHAT_Context *context, 54invitation_create_from_message (struct GNUNET_CHAT_Context *context,
47 const struct GNUNET_MESSENGER_MessageInvite *message); 55 const struct GNUNET_MESSENGER_MessageInvite *message);
48 56
57/**
58 * Destroys a chat <i>invitation</i> and frees its memory.
59 *
60 * @param[in,out] invitation Chat invitation
61 */
49void 62void
50invitation_destroy (struct GNUNET_CHAT_Invitation *invitation); 63invitation_destroy (struct GNUNET_CHAT_Invitation *invitation);
51 64