ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
lib/discovery/session.c
Go to the documentation of this file.
1
8
10
16 if (!entry) {
17 return;
18 }
19
20 // Free all participants
21 for (size_t i = 0; i < MAX_SESSION_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}
#define SAFE_FREE(ptr)
#define MAX_SESSION_PARTICIPANTS
struct session_entry session_entry_t
Persisted discovery-session record used to admit and route participants.
void session_entry_destroy(session_entry_t *entry)
Free a session entry and all its resources.
participant_t * participants[128]
Participant array (in-memory only).