summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Laager <rlaager@pidgin.im>2008-10-30 19:58:25 +0000
committerRichard Laager <rlaager@pidgin.im>2008-10-30 19:58:25 +0000
commitb4002ef76d7d987a6b1835911c6a0275221a9821 (patch)
treedc118d668b226849bcb24712cd6460233747ef9c
parenta8ca44623e06269438ba9bfcd4e204f7e7bc523e (diff)
downloadpidgin-b4002ef76d7d987a6b1835911c6a0275221a9821.tar.gz
Fix some macros to work with hidden structs.
-rw-r--r--libpurple/blist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpurple/blist.h b/libpurple/blist.h
index 51336d1fb9..016c8e9f28 100644
--- a/libpurple/blist.h
+++ b/libpurple/blist.h
@@ -75,11 +75,11 @@ typedef enum
} PurpleBlistNodeFlags;
-#define PURPLE_BLIST_NODE_HAS_FLAG(b, f) (((PurpleBlistNode*)(b))->flags & (f))
+#define PURPLE_BLIST_NODE_HAS_FLAG(b, f) (purple_blist_node_get_flags((PurpleBlistNode*)(b)) & (f))
#define PURPLE_BLIST_NODE_SHOULD_SAVE(b) (! PURPLE_BLIST_NODE_HAS_FLAG(b, PURPLE_BLIST_NODE_FLAG_NO_SAVE))
-#define PURPLE_BLIST_NODE_NAME(n) ((n)->type == PURPLE_BLIST_CHAT_NODE ? purple_chat_get_name((PurpleChat*)n) : \
- (n)->type == PURPLE_BLIST_BUDDY_NODE ? purple_buddy_get_name((PurpleBuddy*)n) : NULL)
+#define PURPLE_BLIST_NODE_NAME(n) (purple_blist_node_get_type(n) == PURPLE_BLIST_CHAT_NODE ? purple_chat_get_name((PurpleChat*)n) : \
+ purple_blist_node_get_type(n) == PURPLE_BLIST_BUDDY_NODE ? purple_buddy_get_name((PurpleBuddy*)n) : NULL)
#include "account.h"
#include "buddyicon.h"