From 306f00d3e897d83d475a1f7c34f31d0790844325 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 12 Jan 2013 19:51:32 +0000 Subject: [PATCH] Moved ChatSession typedef --- src/chat_session.c | 5 ++++- 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 -typedef struct chat_session_t *ChatSession; - void chat_sessions_init(void); void chat_sessions_clear(void); void chat_session_start(const char * const recipient,