about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-29 02:08:06 +0000
committerJames Booth <boothj5@gmail.com>2014-12-29 02:08:06 +0000
commite75b8dcfb318bc76ddfddf796da5824e906c8701 (patch)
tree17fd3ea7c0ef64ff16a0e4819c0c1a18d3e9f26c
parent894360dc813fcce3d22fcc2dc34ec6f5f1926072 (diff)
downloadprofani-tty-e75b8dcfb318bc76ddfddf796da5824e906c8701.tar.gz
Renamed recipient->barejid in chat sessions
-rw-r--r--src/chat_session.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/chat_session.c b/src/chat_session.c
index f615bded..43b20806 100644
--- a/src/chat_session.c
+++ b/src/chat_session.c
@@ -65,9 +65,9 @@ typedef struct chat_session_t {
 
 static GHashTable *sessions;
 
-static ChatSession* _chat_session_new(const char * const recipient, gboolean supported);
-static void _chat_session_set_composing(const char * const recipient);
-static void _chat_session_set_active(const char * const recipient);
+static ChatSession* _chat_session_new(const char * const barejid, gboolean supported);
+static void _chat_session_set_composing(const char * const barejid);
+static void _chat_session_set_active(const char * const barejid);
 static void _chat_session_free(ChatSession *session);
 
 void
@@ -99,9 +99,9 @@ _chat_session_new(const char * const barejid, gboolean supported)
 }
 
 static void
-_chat_session_set_composing(const char * const recipient)
+_chat_session_set_composing(const char * const barejid)
 {
-    ChatSession *session = g_hash_table_lookup(sessions, recipient);
+    ChatSession *session = g_hash_table_lookup(sessions, barejid);
 
     if (session != NULL) {
         if (session->state != CHAT_STATE_COMPOSING) {
@@ -113,9 +113,9 @@ _chat_session_set_composing(const char * const recipient)
 }
 
 static void
-_chat_session_set_active(const char * const recipient)
+_chat_session_set_active(const char * const barejid)
 {
-    ChatSession *session = g_hash_table_lookup(sessions, recipient);
+    ChatSession *session = g_hash_table_lookup(sessions, barejid);
 
     if (session != NULL) {
         session->state = CHAT_STATE_ACTIVE;