about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-08 02:30:34 +0100
committerJames Booth <boothj5@gmail.com>2016-05-08 02:30:34 +0100
commit188df60cfe18bc14be7e7774a34cc3a272db82a3 (patch)
tree42d5b56b3d61ad350e53e0982b9688533759ca10 /src/xmpp
parent31e6cc8e38a6647dd2270ce41c0fd3414da95c7e (diff)
downloadprofani-tty-188df60cfe18bc14be7e7774a34cc3a272db82a3.tar.gz
Rename diso_items->diso_infos
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c24
-rw-r--r--src/xmpp/connection.h2
2 files changed, 13 insertions, 13 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index d958403b..102e7217 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -61,7 +61,7 @@ typedef struct prof_conn_t {
     int priority;
     char *domain;
     GHashTable *available_resources;
-    GSList *disco_items;
+    GSList *disco_infos;
 } ProfConnection;
 
 static ProfConnection conn;
@@ -85,7 +85,7 @@ void connection_init(void)
     conn.xmpp_conn = NULL;
     conn.xmpp_ctx = NULL;
     conn.domain = NULL;
-    conn.disco_items = NULL;
+    conn.disco_infos = NULL;
     conn.available_resources = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)resource_destroy);
 }
 
@@ -204,15 +204,15 @@ connection_get_fulljid(void)
 }
 
 GSList*
-connection_get_disco_items(void)
+connection_get_disco_infos(void)
 {
-    return conn.disco_items;
+    return conn.disco_infos;
 }
 
 DiscoInfo*
 connection_get_disco_info(const char *const jid)
 {
-    GSList *curr = conn.disco_items;
+    GSList *curr = conn.disco_infos;
     while (curr) {
         DiscoInfo *disco_info = curr->data;
         if (g_strcmp0(disco_info->jid, jid) == 0) {
@@ -372,7 +372,7 @@ connection_send_stanza(const char *const stanza)
 }
 
 static void
-_disco_item_destroy(DiscoInfo *info)
+_disco_info_destroy(DiscoInfo *info)
 {
     if (info) {
         free(info->jid);
@@ -386,15 +386,15 @@ _disco_item_destroy(DiscoInfo *info)
 void
 connection_disco_items_free(void)
 {
-    g_slist_free_full(conn.disco_items, (GDestroyNotify)_disco_item_destroy);
-    conn.disco_items = NULL;
+    g_slist_free_full(conn.disco_infos, (GDestroyNotify)_disco_info_destroy);
+    conn.disco_infos = NULL;
 }
 
 gboolean
 connection_supports(const char *const feature)
 {
     DiscoInfo *disco_info;
-    GSList *curr = conn.disco_items;
+    GSList *curr = conn.disco_infos;
     while (curr) {
         disco_info = curr->data;
         if (g_hash_table_lookup_extended(disco_info->features, feature, NULL, NULL)) {
@@ -410,7 +410,7 @@ char*
 connection_jid_for_feature(const char *const feature)
 {
     DiscoInfo *disco_info;
-    GSList *curr = conn.disco_items;
+    GSList *curr = conn.disco_infos;
     while (curr) {
         disco_info = curr->data;
         if (g_hash_table_lookup_extended(disco_info->features, feature, NULL, NULL)) {
@@ -431,7 +431,7 @@ connection_set_disco_items(GSList *items)
         DiscoInfo *info = malloc(sizeof(struct disco_info_t));
         info->jid = strdup(item->jid);
         info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
-        conn.disco_items = g_slist_append(conn.disco_items, info);
+        conn.disco_infos = g_slist_append(conn.disco_infos, info);
         iq_disco_info_request_onconnect(info->jid);
 
         curr = g_slist_next(curr);
@@ -455,7 +455,7 @@ _connection_handler(xmpp_conn_t *const xmpp_conn, const xmpp_conn_event_t status
         DiscoInfo *info = malloc(sizeof(struct disco_info_t));
         info->jid = strdup(conn.domain);
         info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
-        conn.disco_items = g_slist_append(conn.disco_items, info);
+        conn.disco_infos = g_slist_append(conn.disco_infos, info);
 
         session_login_success(connection_is_secured());
 
diff --git a/src/xmpp/connection.h b/src/xmpp/connection.h
index 92c951f2..c2002e0f 100644
--- a/src/xmpp/connection.h
+++ b/src/xmpp/connection.h
@@ -57,7 +57,7 @@ void connection_free_log(void);
 xmpp_conn_t* connection_get_conn(void);
 xmpp_ctx_t* connection_get_ctx(void);
 char *connection_get_domain(void);
-GSList* connection_get_disco_items(void);
+GSList* connection_get_disco_infos(void);
 char* connection_jid_for_feature(const char *const feature);
 DiscoInfo* connection_get_disco_info(const char *const jid);
 
i-tty/blame/themes/hacker?id=fbb0f81f45713ef099ac2f1bec407d1d256b246f'>^
e3b66089 ^
fbc30231 ^

















cd2458c0 ^

b21edfaa ^
1900402f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75