aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lobby.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lobby.h')
-rw-r--r--src/gnunet_chat_lobby.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gnunet_chat_lobby.h b/src/gnunet_chat_lobby.h
index bc37cfc..c77fbae 100644
--- a/src/gnunet_chat_lobby.h
+++ b/src/gnunet_chat_lobby.h
@@ -53,12 +53,34 @@ struct GNUNET_CHAT_Lobby
53 void *cls; 53 void *cls;
54}; 54};
55 55
56/**
57 * Creates a new chat lobby using a given chat <i>handle</i>.
58 *
59 * @param[in,out] handle Chat handle
60 * @return New chat lobby
61 */
56struct GNUNET_CHAT_Lobby* 62struct GNUNET_CHAT_Lobby*
57lobby_create (struct GNUNET_CHAT_Handle *handle); 63lobby_create (struct GNUNET_CHAT_Handle *handle);
58 64
65/**
66 * Destroys a chat <i>lobby</i> and frees its memory.
67 *
68 * @param[in,out] lobby Chat lobby
69 */
59void 70void
60lobby_destroy (struct GNUNET_CHAT_Lobby *lobby); 71lobby_destroy (struct GNUNET_CHAT_Lobby *lobby);
61 72
73/**
74 * Opens a chat <i>lobby</i> and closes it automatically
75 * after a selected <i>delay</i>. Once the lobby is open
76 * a given <i>callback</i> will be called with a custom
77 * closure.
78 *
79 * @param[in,out] lobby Chat lobby
80 * @param[in] delay Delay to close down the lobby again
81 * @param[in] callback Lobby opening callback
82 * @param[in,out] cls Closure
83 */
62void 84void
63lobby_open (struct GNUNET_CHAT_Lobby *lobby, 85lobby_open (struct GNUNET_CHAT_Lobby *lobby,
64 struct GNUNET_TIME_Relative delay, 86 struct GNUNET_TIME_Relative delay,