diff options
author | James Booth <boothj5@gmail.com> | 2013-01-12 19:51:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-12 19:51:32 +0000 |
commit | 306f00d3e897d83d475a1f7c34f31d0790844325 (patch) | |
tree | 722577f61851be2a2abab186722af820fc02fe74 /src | |
parent | d7b969b1354ed69b4080b5258130ac61d0714d67 (diff) | |
download | profani-tty-306f00d3e897d83d475a1f7c34f31d0790844325.tar.gz |
Moved ChatSession typedef
Diffstat (limited to 'src')
-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, |