Mercurial > pidgin
comparison libpurple/protocols/bonjour/bonjour.c @ 23018:ef0bcbe33689
applied changes from 3d595739f53a259d5dae408a05f64d2836f02ac9
through 05cdb341d2bf5165ab95cc42e52750624f0a7ad9
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 19 Jun 2008 02:56:37 +0000 |
parents | d50194ab3016 |
children | fb7a42a09789 |
comparison
equal
deleted
inserted
replaced
23017:adbcf5b84438 | 23018:ef0bcbe33689 |
---|---|
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 */ |