~ubuntu-branches/ubuntu/hardy/pidgin/hardy

« back to all changes in this revision

Viewing changes to libpurple/blist.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2007-12-21 02:48:06 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071221024806-pd44a5k9tiyh12mp
Tags: 1:2.3.1-2ubuntu1
* Sync with Debian, remaining Ubuntu changes; (LP: #177811)
  - Set Maintainer to Ubuntu Core Developers.
  - Add build-deps on liblaunchpad-integration-dev, intltool,
    libnm-glib-dev (for --enable-nm) (Ubuntu #112720).
  - Drop build-deps on libsilc-1.1-2-dev | libsilc-dev (>= 1.1.1) as 
    this library is in universe.
  - Drop the libpurple0 recommends on libpurple-bin.
  - Add a gaim transitionnal package for upgrades.
  - Ship compatibility symlinks via debian/gaim.links.
  - Pass --enable-nm to configure to enable NetworkManager support.
  - Pass --disable-silc to configure to disable silc support even if 
    it's installed in the build environment.
  - Add X-Ubuntu-Gettext-Domain to the desktop file and update the
    translation templates in common-install-impl::.
   - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/* and set /pidgin/plugins/loaded to load 
    the notify plugin; Ubuntu: #13389.
  - Add LPI integration patch, 02_lpi.
  - Add patch 04_let_crasher_for_apport to stop catching the SIGSEGV signal
    and let apport handle it.
  - Add patch 05_default_to_irc_ubuntu_com to set the default IRC 
    server to irc.ubuntu.com.
  - Add autoconf patch, 70_autoconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * @file blist.h Buddy List API
3
3
 * @ingroup core
 
4
 * @see @ref blist-signals
4
5
 */
5
6
 
6
7
/* purple
22
23
 * You should have received a copy of the GNU General Public License
23
24
 * along with this program; if not, write to the Free Software
24
25
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
25
 
 *
26
 
 * @see @ref blist-signals
27
26
 */
28
27
#ifndef _PURPLE_BLIST_H_
29
28
#define _PURPLE_BLIST_H_
65
64
 
66
65
typedef enum
67
66
{
68
 
        PURPLE_BLIST_NODE_FLAG_NO_SAVE = 1 /**< node should not be saved with the buddy list */
 
67
        PURPLE_BLIST_NODE_FLAG_NO_SAVE      = 1 << 0, /**< node should not be saved with the buddy list */
69
68
 
70
69
} PurpleBlistNodeFlags;
71
70
 
72
 
#define PURPLE_BLIST_NODE_HAS_FLAG(b, f) ((b)->flags & (f))
 
71
#define PURPLE_BLIST_NODE_HAS_FLAG(b, f) (((PurpleBlistNode*)(b))->flags & (f))
73
72
#define PURPLE_BLIST_NODE_SHOULD_SAVE(b) (! PURPLE_BLIST_NODE_HAS_FLAG(b, PURPLE_BLIST_NODE_FLAG_NO_SAVE))
74
73
 
75
74
#define PURPLE_BLIST_NODE_NAME(n) ((n)->type == PURPLE_BLIST_CHAT_NODE  ? purple_chat_get_name((PurpleChat*)n) :        \
483
482
 */
484
483
PurpleBuddy *purple_contact_get_priority_buddy(PurpleContact *contact);
485
484
 
 
485
#ifndef PURPLE_DISABLE_DEPRECATED
486
486
/**
487
487
 * Sets the alias for a contact.
488
488
 *
489
489
 * @param contact  The contact
490
490
 * @param alias    The alias to set, or NULL to unset
 
491
 *
 
492
 * @deprecated Use purple_blist_alias_contact() instead.
491
493
 */
492
494
void purple_contact_set_alias(PurpleContact *contact, const char *alias);
 
495
#endif
493
496
 
494
497
/**
495
498
 * Gets the alias for a contact.
516
519
 * @param contact  The contact
517
520
 */
518
521
void purple_contact_invalidate_priority_buddy(PurpleContact *contact);
 
522
 
519
523
/**
520
524
 * Removes a buddy from the buddy list and frees the memory allocated to it.
 
525
 * This doesn't actually try to remove the buddy from the server list, nor does
 
526
 * it clean up the prpl_data.
521
527
 *
522
528
 * @param buddy   The buddy to be removed
523
529
 */