comparison src/protocols/simple/simple.c @ 12143:cbebda5f019c

[gaim-migrate @ 14444] SF Patch #1360399 from Evan Schoenberg (evands) "I discussed this previously with Mark and he said it'd be fine. This factors out the part of the send_file function which creates a new GaimXfer into a separate prpl function, new_xfer. It's called in each of the existing send_file functions. This is needed so that another client (okay, Adium) can get a new outgoing GaimXfer from a prpl without depending upon the specific ft.c logic of send_file; previously I was adding a duplicate method to each prpl and then calling it directly." I fixed a couple small bugs in this. Otherwise, it looks good, and seems like a reasonable libgaim request. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 19 Nov 2005 00:26:12 +0000
parents fa742ad8068c
children 2f379ed0c26b
comparison
equal deleted inserted replaced
12142:0c672be21798 12143:cbebda5f019c
1332 static GaimPluginProtocolInfo prpl_info = 1332 static GaimPluginProtocolInfo prpl_info =
1333 { 1333 {
1334 0, 1334 0,
1335 NULL, /* user_splits */ 1335 NULL, /* user_splits */
1336 NULL, /* protocol_options */ 1336 NULL, /* protocol_options */
1337 NO_BUDDY_ICONS, /* icon_spec */ 1337 NO_BUDDY_ICONS, /* icon_spec */
1338 simple_list_icon, /* list_icon */ 1338 simple_list_icon, /* list_icon */
1339 NULL, /* list_emblems */ 1339 NULL, /* list_emblems */
1340 NULL, /* status_text */ 1340 NULL, /* status_text */
1341 NULL, /* tooltip_text */ 1341 NULL, /* tooltip_text */
1342 simple_status_types, /* away_states */ 1342 simple_status_types, /* away_states */
1343 NULL, /* blist_node_menu */ 1343 NULL, /* blist_node_menu */
1344 NULL, /* chat_info */ 1344 NULL, /* chat_info */
1345 NULL, /* chat_info_defaults */ 1345 NULL, /* chat_info_defaults */
1346 simple_login, /* login */ 1346 simple_login, /* login */
1347 simple_close, /* close */ 1347 simple_close, /* close */
1348 simple_im_send, /* send_im */ 1348 simple_im_send, /* send_im */
1349 NULL, /* set_info */ 1349 NULL, /* set_info */
1350 simple_typing, /* send_typing */ 1350 simple_typing, /* send_typing */
1351 NULL, /* get_info */ 1351 NULL, /* get_info */
1352 simple_set_status, /* set_status */ 1352 simple_set_status, /* set_status */
1353 NULL, /* set_idle */ 1353 NULL, /* set_idle */
1354 NULL, /* change_passwd */ 1354 NULL, /* change_passwd */
1355 simple_add_buddy, /* add_buddy */ 1355 simple_add_buddy, /* add_buddy */
1356 NULL, /* add_buddies */ 1356 NULL, /* add_buddies */
1357 simple_remove_buddy, /* remove_buddy */ 1357 simple_remove_buddy, /* remove_buddy */
1358 NULL, /* remove_buddies */ 1358 NULL, /* remove_buddies */
1359 dummy_add_deny, /* add_permit */ 1359 dummy_add_deny, /* add_permit */
1360 dummy_add_deny, /* add_deny */ 1360 dummy_add_deny, /* add_deny */
1361 dummy_add_deny, /* rem_permit */ 1361 dummy_add_deny, /* rem_permit */
1362 dummy_add_deny, /* rem_deny */ 1362 dummy_add_deny, /* rem_deny */
1363 dummy_permit_deny, /* set_permit_deny */ 1363 dummy_permit_deny, /* set_permit_deny */
1364 NULL, /* join_chat */ 1364 NULL, /* join_chat */
1365 NULL, /* reject_chat */ 1365 NULL, /* reject_chat */
1366 NULL, /* get_chat_name */ 1366 NULL, /* get_chat_name */
1367 NULL, /* chat_invite */ 1367 NULL, /* chat_invite */
1368 NULL, /* chat_leave */ 1368 NULL, /* chat_leave */
1369 NULL, /* chat_whisper */ 1369 NULL, /* chat_whisper */
1370 NULL, /* chat_send */ 1370 NULL, /* chat_send */
1371 simple_keep_alive, /* keepalive */ 1371 simple_keep_alive, /* keepalive */
1372 NULL, /* register_user */ 1372 NULL, /* register_user */
1373 NULL, /* get_cb_info */ 1373 NULL, /* get_cb_info */
1374 NULL, /* get_cb_away */ 1374 NULL, /* get_cb_away */
1375 NULL, /* alias_buddy */ 1375 NULL, /* alias_buddy */
1376 NULL, /* group_buddy */ 1376 NULL, /* group_buddy */
1379 NULL, /* convo_closed */ 1379 NULL, /* convo_closed */
1380 NULL, /* normalize */ 1380 NULL, /* normalize */
1381 NULL, /* set_buddy_icon */ 1381 NULL, /* set_buddy_icon */
1382 NULL, /* remove_group */ 1382 NULL, /* remove_group */
1383 NULL, /* get_cb_real_name */ 1383 NULL, /* get_cb_real_name */
1384 NULL, /* set_chat_topic */ 1384 NULL, /* set_chat_topic */
1385 NULL, /* find_blist_chat */ 1385 NULL, /* find_blist_chat */
1386 NULL, /* roomlist_get_list */ 1386 NULL, /* roomlist_get_list */
1387 NULL, /* roomlist_cancel */ 1387 NULL, /* roomlist_cancel */
1388 NULL, /* roomlist_expand_category */ 1388 NULL, /* roomlist_expand_category */
1389 NULL, /* can_receive_file */ 1389 NULL, /* can_receive_file */
1390 NULL /* send_file */ 1390 NULL, /* send_file */
1391 NULL /* new_xfer */
1391 }; 1392 };
1392 1393
1393 1394
1394 static GaimPluginInfo info = 1395 static GaimPluginInfo info =
1395 { 1396 {