ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
lib/discovery/session.c
Go to the documentation of this file.
1
10
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}
#define SAFE_FREE(ptr)
Definition common.h:376
void session_entry_destroy(session_entry_t *entry)
Free a session entry and all its resources.
#define MAX_PARTICIPANTS
Session entry data structure.
participant_t * participants[16]
Participant array (in-memory only)