diff options
Diffstat (limited to 'src/gnunet_chat_lobby.h')
-rw-r--r-- | src/gnunet_chat_lobby.h | 22 |
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 | */ | ||
56 | struct GNUNET_CHAT_Lobby* | 62 | struct GNUNET_CHAT_Lobby* |
57 | lobby_create (struct GNUNET_CHAT_Handle *handle); | 63 | lobby_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 | */ | ||
59 | void | 70 | void |
60 | lobby_destroy (struct GNUNET_CHAT_Lobby *lobby); | 71 | lobby_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 | */ | ||
62 | void | 84 | void |
63 | lobby_open (struct GNUNET_CHAT_Lobby *lobby, | 85 | lobby_open (struct GNUNET_CHAT_Lobby *lobby, |
64 | struct GNUNET_TIME_Relative delay, | 86 | struct GNUNET_TIME_Relative delay, |