ascii-chat
0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
lib/discovery/session.c
Go to the documentation of this file.
1
9
#include <ascii-chat/discovery/session.h>
10
15
void
session_entry_destroy
(session_entry_t *entry) {
16
if
(!entry) {
17
return
;
18
}
19
20
// Free all participants
21
for
(
size_t
i = 0; i <
MAX_PARTICIPANTS
; i++) {
22
if
(entry->participants[i]) {
23
SAFE_FREE(entry->participants[i]);
24
}
25
}
26
27
// Free the entry itself
28
SAFE_FREE(entry);
29
}
session_entry_destroy
void session_entry_destroy(session_entry_t *entry)
Free a session entry and all its resources.
Definition
lib/discovery/session.c:15
MAX_PARTICIPANTS
#define MAX_PARTICIPANTS
Definition
session.h:33
lib
discovery
session.c
Generated by
1.9.8