From 382c8f625ffde2f6386fe4d49d417ec2c8ac6d45 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 22 Mar 2023 08:52:36 -0400 Subject: [PATCH] MT#56447 document hash table contents Change-Id: I233bdfc3ba26b63c589d0f0e877335eead43f100 --- daemon/janus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/janus.c b/daemon/janus.c index 2eeaf99a7..6f874b786 100644 --- a/daemon/janus.c +++ b/daemon/janus.c @@ -17,8 +17,8 @@ struct janus_session { // "login" session uint64_t id; mutex_t lock; time_t last_act; - GHashTable *websockets; // controlling transports - GHashTable *handles; + GHashTable *websockets; // controlling transports, websocket_conn -> websocket_conn + GHashTable *handles; // handle ID -> handle }; struct janus_handle { // corresponds to a conference participant uint64_t id; @@ -37,11 +37,11 @@ struct janus_room { static mutex_t janus_lock; -static GHashTable *janus_tokens; -static GHashTable *janus_sessions; -static GHashTable *janus_handles; -static GHashTable *janus_rooms; -static GHashTable *janus_feeds; +static GHashTable *janus_tokens; // auth tokens, currently mostly unused +static GHashTable *janus_sessions; // session ID -> session. holds a session reference +static GHashTable *janus_handles; // handle ID -> 0x1, to test for uniqueness +static GHashTable *janus_rooms; // room ID -> room +static GHashTable *janus_feeds; // feed ID -> handle ID static void __janus_session_free(void *p) {