Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msn.c @ 27724:26f55eb6ab59
propagate from branch 'im.pidgin.pidgin' (head 1cb036aecbbe359226e69874379d39ce74c8daf6)
to branch 'im.pidgin.pidgin.yaz' (head 99515d90725804d37c9baeec606e2f4e2ec5a61f)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 19 Sep 2007 08:27:28 +0000 |
parents | a1b40a04f2df 7f8cf35fc99b |
children | d1ed74d50a9c |
comparison
equal
deleted
inserted
replaced
20541:a9022965162b | 27724:26f55eb6ab59 |
---|---|
178 if (*alias == '\0') { | 178 if (*alias == '\0') { |
179 alias = purple_url_encode(purple_account_get_username(account)); | 179 alias = purple_url_encode(purple_account_get_username(account)); |
180 } | 180 } |
181 | 181 |
182 msn_cmdproc_send(cmdproc, "PRP", "MFN %s", alias); | 182 msn_cmdproc_send(cmdproc, "PRP", "MFN %s", alias); |
183 // propagate change on server side to local --yaz | |
184 purple_account_set_alias(account, entry); //oct16 <-- XXX questionable. Sep19. | |
183 | 185 |
184 } | 186 } |
185 | 187 |
186 static void | 188 static void |
187 msn_set_prp(PurpleConnection *gc, const char *type, const char *entry) | 189 msn_set_prp(PurpleConnection *gc, const char *type, const char *entry) |
288 purple_connection_get_display_name(gc), FALSE, FALSE, NULL, | 290 purple_connection_get_display_name(gc), FALSE, FALSE, NULL, |
289 _("OK"), G_CALLBACK(msn_act_id), | 291 _("OK"), G_CALLBACK(msn_act_id), |
290 _("Cancel"), NULL, | 292 _("Cancel"), NULL, |
291 purple_connection_get_account(gc), NULL, NULL, | 293 purple_connection_get_account(gc), NULL, NULL, |
292 gc); | 294 gc); |
295 } | |
296 | |
297 static void | |
298 msn_ipc_init(PurplePlugin *plugin) | |
299 { | |
300 purple_plugin_ipc_register(plugin, "msn_set_friendly_name", | |
301 PURPLE_CALLBACK(msn_act_id), | |
302 purple_marshal_VOID__POINTER_POINTER, | |
303 purple_value_new(PURPLE_TYPE_UNKNOWN),2, | |
304 purple_value_new(PURPLE_TYPE_POINTER), | |
305 purple_value_new(PURPLE_TYPE_POINTER)); | |
306 } | |
307 | |
308 static void | |
309 msn_ipc_end(PurplePlugin *plugin) | |
310 { | |
311 purple_plugin_ipc_unregister_all(plugin); | |
293 } | 312 } |
294 | 313 |
295 static void | 314 static void |
296 msn_show_set_home_phone(PurplePluginAction *action) | 315 msn_show_set_home_phone(PurplePluginAction *action) |
297 { | 316 { |
2099 { | 2118 { |
2100 msn_notification_init(); | 2119 msn_notification_init(); |
2101 msn_switchboard_init(); | 2120 msn_switchboard_init(); |
2102 msn_sync_init(); | 2121 msn_sync_init(); |
2103 | 2122 |
2123 // yaz | |
2124 msn_ipc_init(plugin); | |
2125 | |
2104 return TRUE; | 2126 return TRUE; |
2105 } | 2127 } |
2106 | 2128 |
2107 static gboolean msn_unload(PurplePlugin *plugin) | 2129 static gboolean msn_unload(PurplePlugin *plugin) |
2108 { | 2130 { |
2109 msn_notification_end(); | 2131 msn_notification_end(); |
2110 msn_switchboard_end(); | 2132 msn_switchboard_end(); |
2111 msn_sync_end(); | 2133 msn_sync_end(); |
2134 | |
2135 // yaz | |
2136 msn_ipc_end(plugin); | |
2112 | 2137 |
2113 return TRUE; | 2138 return TRUE; |
2114 } | 2139 } |
2115 | 2140 |
2116 static PurpleAccount *find_acct(const char *prpl, const char *acct_id) | 2141 static PurpleAccount *find_acct(const char *prpl, const char *acct_id) |
2219 msn_chat_send, /* chat_send */ | 2244 msn_chat_send, /* chat_send */ |
2220 msn_keepalive, /* keepalive */ | 2245 msn_keepalive, /* keepalive */ |
2221 NULL, /* register_user */ | 2246 NULL, /* register_user */ |
2222 NULL, /* get_cb_info */ | 2247 NULL, /* get_cb_info */ |
2223 NULL, /* get_cb_away */ | 2248 NULL, /* get_cb_away */ |
2224 NULL, /* alias_buddy */ | 2249 NULL, /* alias_buddy */ |
2225 msn_group_buddy, /* group_buddy */ | 2250 msn_group_buddy, /* group_buddy */ |
2226 msn_rename_group, /* rename_group */ | 2251 msn_rename_group, /* rename_group */ |
2227 NULL, /* buddy_free */ | 2252 NULL, /* buddy_free */ |
2228 msn_convo_closed, /* convo_closed */ | 2253 msn_convo_closed, /* convo_closed */ |
2229 msn_normalize, /* normalize */ | 2254 msn_normalize, /* normalize */ |