# HG changeset patch # User Gary Kramlich # Date 1225338381 0 # Node ID be7659f7b4d8095e345efa9f6d47c8480a2fc94a # Parent 6ebabe0841a01c30f37a9776b463427c153ac782# Parent d81104908a4e99cb33a53fd7f76f0d32fd4e1936 propagate from branch 'im.pidgin.pidgin' (head b630f3305c53ab0eb32b948911940959cc873699) to branch 'im.pidgin.pidgin.next.minor' (head 9af02e506a2b0df8efa63daa7fd7c71e5c457d5f) diff -r 6ebabe0841a0 -r be7659f7b4d8 libpurple/blist.c --- a/libpurple/blist.c Thu Oct 30 03:03:55 2008 +0000 +++ b/libpurple/blist.c Thu Oct 30 03:46:21 2008 +0000 @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA * */ +#define PURPLE_BLIST_STRUCTS + #include "internal.h" #include "blist.h" #include "conversation.h" @@ -41,60 +43,6 @@ static guint save_timer = 0; static gboolean blist_loaded = FALSE; - -/****************************************************************************** - * Structs - *****************************************************************************/ -#ifdef PURPLE_HIDE_STRUCTS -struct _PurpleBlistNode { - PurpleBlistNodeType type; - PurpleBlistNode *prev; - PurpleBlistNode *next; - PurpleBlistNode *parent; - PurpleBlistNode *child; - GHashTable *settings; - void *ui_data; - PurpleBlistNodeFlags flags; -}; - -struct _PurpleBuddy { - PurpleBlistNode node; - char *name; - char *alias; - char *server_alias; - void *proto_data; - PurpleBuddyIcon *icon; - PurpleAccount *account; - PurplePresence *presence; -}; - -struct _PurpleContact { - PurpleBlistNode node; - char *alias; - int totalsize; - int currentsize; - int online; - PurpleBuddy *priority; - gboolean priority_valid; -}; - -struct _PurpleGroup { - PurpleBlistNode node; - char *name; - int totalsize; - int currentsize; - int online; -}; - -struct _PurpleChat { - PurpleBlistNode node; - char *alias; - GHashTable *components; - PurpleAccount *account; -}; - -#endif /* PURPLE_HIDE_STRUCTS */ - /********************************************************************* * Private utility functions * *********************************************************************/ diff -r 6ebabe0841a0 -r be7659f7b4d8 libpurple/blist.h --- a/libpurple/blist.h Thu Oct 30 03:03:55 2008 +0000 +++ b/libpurple/blist.h Thu Oct 30 03:46:21 2008 +0000 @@ -89,7 +89,7 @@ /* Data Structures */ /**************************************************************************/ -#ifndef PURPLE_HIDE_STRUCTS +#if !(defined PURPLE_HIDE_STRUCTS) || (defined PURPLE_BLIST_STRUCTS) /** * A Buddy list node. This can represent a group, a buddy, or anything else. @@ -156,7 +156,7 @@ PurpleAccount *account; /**< The account this chat is attached to */ }; -#endif /* PURPLE_HIDE_STRUCTS */ +#endif /* PURPLE_HIDE_STRUCTS && PURPLE_BLIST_STRUCTS */ /**