comparison libpurple/protocols/gg/confer.c @ 32672:3828a61c44da

A boring and large patch so I can merge heads.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Dec 2011 08:21:58 +0000
parents 44b4e8bd759b
children
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
40 /* void ggp_confer_participants_add_uin(PurpleConnection *gc, const gchar *chat_name, const uin_t uin) {{{ */ 40 /* void ggp_confer_participants_add_uin(PurpleConnection *gc, const gchar *chat_name, const uin_t uin) {{{ */
41 void ggp_confer_participants_add_uin(PurpleConnection *gc, const gchar *chat_name, 41 void ggp_confer_participants_add_uin(PurpleConnection *gc, const gchar *chat_name,
42 const uin_t uin) 42 const uin_t uin)
43 { 43 {
44 PurpleConversation *conv; 44 PurpleConversation *conv;
45 GGPInfo *info = gc->proto_data; 45 GGPInfo *info = purple_connection_get_protocol_data(gc);
46 GGPChat *chat; 46 GGPChat *chat;
47 GList *l; 47 GList *l;
48 gchar *str_uin; 48 gchar *str_uin;
49 49
50 for (l = info->chats; l != NULL; l = l->next) { 50 for (l = info->chats; l != NULL; l = l->next) {
71 71
72 /* void ggp_confer_participants_add(PurpleConnection *gc, const gchar *chat_name, const uin_t *recipients, int count) {{{ */ 72 /* void ggp_confer_participants_add(PurpleConnection *gc, const gchar *chat_name, const uin_t *recipients, int count) {{{ */
73 void ggp_confer_participants_add(PurpleConnection *gc, const gchar *chat_name, 73 void ggp_confer_participants_add(PurpleConnection *gc, const gchar *chat_name,
74 const uin_t *recipients, int count) 74 const uin_t *recipients, int count)
75 { 75 {
76 GGPInfo *info = gc->proto_data; 76 GGPInfo *info = purple_connection_get_protocol_data(gc);
77 GList *l; 77 GList *l;
78 gchar *str_uin; 78 gchar *str_uin;
79 79
80 for (l = info->chats; l != NULL; l = l->next) { 80 for (l = info->chats; l != NULL; l = l->next) {
81 GGPChat *chat = l->data; 81 GGPChat *chat = l->data;
109 109
110 /* const char *ggp_confer_find_by_participants(PurpleConnection *gc, const uin_t *recipients, int count) {{{ */ 110 /* const char *ggp_confer_find_by_participants(PurpleConnection *gc, const uin_t *recipients, int count) {{{ */
111 const char *ggp_confer_find_by_participants(PurpleConnection *gc, 111 const char *ggp_confer_find_by_participants(PurpleConnection *gc,
112 const uin_t *recipients, int count) 112 const uin_t *recipients, int count)
113 { 113 {
114 GGPInfo *info = gc->proto_data; 114 GGPInfo *info = purple_connection_get_protocol_data(gc);
115 GGPChat *chat = NULL; 115 GGPChat *chat = NULL;
116 GList *l; 116 GList *l;
117 int matches; 117 int matches;
118 118
119 g_return_val_if_fail(info->chats != NULL, NULL); 119 g_return_val_if_fail(info->chats != NULL, NULL);
147 /* }}} */ 147 /* }}} */
148 148
149 /* const char *ggp_confer_add_new(PurpleConnection *gc, const char *name) {{{ */ 149 /* const char *ggp_confer_add_new(PurpleConnection *gc, const char *name) {{{ */
150 const char *ggp_confer_add_new(PurpleConnection *gc, const char *name) 150 const char *ggp_confer_add_new(PurpleConnection *gc, const char *name)
151 { 151 {
152 GGPInfo *info = gc->proto_data; 152 GGPInfo *info = purple_connection_get_protocol_data(gc);
153 GGPChat *chat; 153 GGPChat *chat;
154 154
155 chat = g_new0(GGPChat, 1); 155 chat = g_new0(GGPChat, 1);
156 156
157 if (name == NULL) 157 if (name == NULL)