Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo_friend.h @ 22807:0b11895cc564
Leak fixes. Avoid creating an unnecessary parallel data structure to YahooFriend.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 03 May 2008 21:03:13 +0000 |
parents | 118046227581 |
children | f16aba67b685 |
comparison
equal
deleted
inserted
replaced
22806:f15d9ded0c45 | 22807:0b11895cc564 |
---|---|
37 /* these are called friends instead of buddies mainly so I can use variables | 37 /* these are called friends instead of buddies mainly so I can use variables |
38 * named f and not confuse them with variables named b | 38 * named f and not confuse them with variables named b |
39 */ | 39 */ |
40 typedef struct _YahooFriend { | 40 typedef struct _YahooFriend { |
41 enum yahoo_status status; | 41 enum yahoo_status status; |
42 char *msg; | 42 gchar *msg; |
43 char *game; | 43 gchar *game; |
44 int idle; | 44 int idle; |
45 int away; | 45 int away; |
46 gboolean sms; | 46 gboolean sms; |
47 char *ip; | 47 gchar *ip; |
48 gboolean bicon_sent_request; | 48 gboolean bicon_sent_request; |
49 YahooPresenceVisibility presence; | 49 YahooPresenceVisibility presence; |
50 int protocol; /* 1=LCS, 2=MSN*/ | 50 int protocol; /* 1=LCS, 2=MSN*/ |
51 long int version_id; | 51 long int version_id; |
52 gchar *alias_id; | |
52 } YahooFriend; | 53 } YahooFriend; |
53 | 54 |
54 YahooFriend *yahoo_friend_find(PurpleConnection *gc, const char *name); | 55 YahooFriend *yahoo_friend_find(PurpleConnection *gc, const char *name); |
55 YahooFriend *yahoo_friend_find_or_new(PurpleConnection *gc, const char *name); | 56 YahooFriend *yahoo_friend_find_or_new(PurpleConnection *gc, const char *name); |
56 | 57 |
61 const char *yahoo_friend_get_game(YahooFriend *f); | 62 const char *yahoo_friend_get_game(YahooFriend *f); |
62 | 63 |
63 void yahoo_friend_set_status_message(YahooFriend *f, char *msg); | 64 void yahoo_friend_set_status_message(YahooFriend *f, char *msg); |
64 const char *yahoo_friend_get_status_message(YahooFriend *f); | 65 const char *yahoo_friend_get_status_message(YahooFriend *f); |
65 | 66 |
67 void yahoo_friend_set_alias_id(YahooFriend *f, const char *alias_id); | |
68 const char *yahoo_friend_get_alias_id(YahooFriend *f); | |
69 | |
66 void yahoo_friend_set_buddy_icon_need_request(YahooFriend *f, gboolean needs); | 70 void yahoo_friend_set_buddy_icon_need_request(YahooFriend *f, gboolean needs); |
67 gboolean yahoo_friend_get_buddy_icon_need_request(YahooFriend *f); | 71 gboolean yahoo_friend_get_buddy_icon_need_request(YahooFriend *f); |
68 | 72 |
69 void yahoo_friend_free(gpointer p); | 73 void yahoo_friend_free(gpointer p); |
70 | 74 |