Browse Source

MT#56447 document hash table contents

Change-Id: I233bdfc3ba26b63c589d0f0e877335eead43f100
pull/1642/head
Richard Fuchs 3 years ago
parent
commit
382c8f625f
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      daemon/janus.c

+ 7
- 7
daemon/janus.c View File

@ -17,8 +17,8 @@ struct janus_session { // "login" session
uint64_t id; uint64_t id;
mutex_t lock; mutex_t lock;
time_t last_act; 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 struct janus_handle { // corresponds to a conference participant
uint64_t id; uint64_t id;
@ -37,11 +37,11 @@ struct janus_room {
static mutex_t janus_lock; 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) { static void __janus_session_free(void *p) {


Loading…
Cancel
Save