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
15void 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}
void session_entry_destroy(session_entry_t *entry)
Free a session entry and all its resources.
#define MAX_PARTICIPANTS
Definition session.h:33