comparison libpurple/protocols/silc/ops.c @ 16442:a5176db228b7

Update SILC to match resent request API changes
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 26 Apr 2007 13:10:57 +0000
parents 32c366eeeb99
children 5e47b3427b28
comparison
equal deleted inserted replaced
16441:eb36a10796d7 16442:a5176db228b7
1293 if (client_entry->attrs) 1293 if (client_entry->attrs)
1294 purple_request_action(gc, _("User Information"), 1294 purple_request_action(gc, _("User Information"),
1295 _("User Information"), 1295 _("User Information"),
1296 buf, 1, client_entry, 2, 1296 buf, 1, client_entry, 2,
1297 _("OK"), G_CALLBACK(silcpurple_whois_more), 1297 _("OK"), G_CALLBACK(silcpurple_whois_more),
1298 _("_More..."), G_CALLBACK(silcpurple_whois_more)); 1298 _("_More..."), G_CALLBACK(silcpurple_whois_more), gc->account, NULL, NULL);
1299 else 1299 else
1300 #endif 1300 #endif
1301 purple_notify_userinfo(gc, client_entry->nickname, user_info, NULL, NULL); 1301 purple_notify_userinfo(gc, client_entry->nickname, user_info, NULL, NULL);
1302 purple_notify_user_info_destroy(user_info); 1302 purple_notify_user_info_destroy(user_info);
1303 } 1303 }
1898 1898
1899 static void 1899 static void
1900 silc_ask_passphrase(SilcClient client, SilcClientConnection conn, 1900 silc_ask_passphrase(SilcClient client, SilcClientConnection conn,
1901 SilcAskPassphrase completion, void *context) 1901 SilcAskPassphrase completion, void *context)
1902 { 1902 {
1903 PurpleConnection *gc = client->application;
1903 SilcPurpleAskPassphrase internal = silc_calloc(1, sizeof(*internal)); 1904 SilcPurpleAskPassphrase internal = silc_calloc(1, sizeof(*internal));
1904 1905
1905 if (!internal) 1906 if (!internal)
1906 return; 1907 return;
1907 internal->completion = completion; 1908 internal->completion = completion;
1908 internal->context = context; 1909 internal->context = context;
1909 purple_request_input(client->application, _("Passphrase"), NULL, 1910 purple_request_input(gc, _("Passphrase"), NULL,
1910 _("Passphrase required"), NULL, FALSE, TRUE, NULL, 1911 _("Passphrase required"), NULL, FALSE, TRUE, NULL,
1911 _("OK"), G_CALLBACK(silc_ask_passphrase_cb), 1912 _("OK"), G_CALLBACK(silc_ask_passphrase_cb),
1912 _("Cancel"), G_CALLBACK(silc_ask_passphrase_cb), 1913 _("Cancel"), G_CALLBACK(silc_ask_passphrase_cb),
1913 internal); 1914 purple_connection_get_account(gc), NULL, NULL, internal);
1914 } 1915 }
1915 1916
1916 1917
1917 /* Notifies application that failure packet was received. This is called 1918 /* Notifies application that failure packet was received. This is called
1918 if there is some protocol active in the client. The `protocol' is the 1919 if there is some protocol active in the client. The `protocol' is the