comparison libpurple/protocols/gg/confer.c @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents aee8dcd35262
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
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)