diff options
-rw-r--r-- | src/chat_session.c | 5 | ||||
-rw-r--r-- | src/chat_session.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/chat_session.c b/src/chat_session.c index 73021187..cd22e79e 100644 --- a/src/chat_session.c +++ b/src/chat_session.c @@ -32,7 +32,6 @@ #define PAUSED_TIMOUT 10.0 #define INACTIVE_TIMOUT 30.0 -static void _chat_session_free(ChatSession session); typedef enum { CHAT_STATE_STARTED, @@ -51,8 +50,12 @@ struct chat_session_t { gboolean sent; }; +typedef struct chat_session_t *ChatSession; + static GHashTable *sessions; +static void _chat_session_free(ChatSession session); + void chat_sessions_init(void) { diff --git a/src/chat_session.h b/src/chat_session.h index 72e6e352..300fa60c 100644 --- a/src/chat_session.h +++ b/src/chat_session.h @@ -25,8 +25,6 @@ #include <glib.h> -typedef struct chat_session_t *ChatSession; - void chat_sessions_init(void); void chat_sessions_clear(void); void chat_session_start(const char * const recipient, |