comparison libpurple/protocols/bonjour/bonjour.c @ 23172:388e96b79206

propagate from branch 'im.pidgin.pidgin.next.minor' (head 71320664d16c85cf4292830959527b4509e2182b) to branch 'im.pidgin.pidgin' (head 75ea267822832fccf8671b593d79999e32b6c694)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 23 May 2008 16:47:59 +0000
parents 25161f5ea347 2a81912c229a
children e0bcb8cfda74
comparison
equal deleted inserted replaced
23171:ff8ec3d58367 23172:388e96b79206
407 /* If we're moving them out of the bonjour group, make them persistent */ 407 /* If we're moving them out of the bonjour group, make them persistent */
408 if (strcmp(new_group, BONJOUR_GROUP_NAME) == 0) 408 if (strcmp(new_group, BONJOUR_GROUP_NAME) == 0)
409 purple_blist_node_set_flags((PurpleBlistNode *)buddy, oldflags | PURPLE_BLIST_NODE_FLAG_NO_SAVE); 409 purple_blist_node_set_flags((PurpleBlistNode *)buddy, oldflags | PURPLE_BLIST_NODE_FLAG_NO_SAVE);
410 else 410 else
411 purple_blist_node_set_flags((PurpleBlistNode *)buddy, oldflags ^ PURPLE_BLIST_NODE_FLAG_NO_SAVE); 411 purple_blist_node_set_flags((PurpleBlistNode *)buddy, oldflags ^ PURPLE_BLIST_NODE_FLAG_NO_SAVE);
412
413 }
414
415 static gboolean
416 bonjour_can_receive_file(PurpleConnection *connection, const char *who)
417 {
418 PurpleBuddy *buddy = purple_find_buddy(connection->account, who);
419
420 return (buddy != NULL && buddy->proto_data != NULL);
412 421
413 } 422 }
414 423
415 static gboolean 424 static gboolean
416 plugin_unload(PurplePlugin *plugin) 425 plugin_unload(PurplePlugin *plugin)
481 NULL, /* set_chat_topic */ 490 NULL, /* set_chat_topic */
482 NULL, /* find_blist_chat */ 491 NULL, /* find_blist_chat */
483 NULL, /* roomlist_get_list */ 492 NULL, /* roomlist_get_list */
484 NULL, /* roomlist_cancel */ 493 NULL, /* roomlist_cancel */
485 NULL, /* roomlist_expand_category */ 494 NULL, /* roomlist_expand_category */
486 NULL, /* can_receive_file */ 495 bonjour_can_receive_file, /* can_receive_file */
487 bonjour_send_file, /* send_file */ 496 bonjour_send_file, /* send_file */
488 bonjour_new_xfer, /* new_xfer */ 497 bonjour_new_xfer, /* new_xfer */
489 NULL, /* offline_message */ 498 NULL, /* offline_message */
490 NULL, /* whiteboard_prpl_ops */ 499 NULL, /* whiteboard_prpl_ops */
491 NULL, /* send_raw */ 500 NULL, /* send_raw */