Mercurial > pidgin
comparison src/protocols/yahoo/yahoo_friend.h @ 12010:b41b75f709e4
[gaim-migrate @ 14303]
sf patch #1350789, from Peter Lawler
"When Yahoo introduced their selective visibility, they
called it 'stealth'. I guess the US Air Force must've
got law-suit happy or something.
Anyways, here's the patch where we change it to
Presence, to match the native client."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Nov 2005 23:50:06 +0000 |
parents | b4919e8c634c |
children |
comparison
equal
deleted
inserted
replaced
12009:8a7553e149de | 12010:b41b75f709e4 |
---|---|
27 | 27 |
28 #include "yahoo.h" | 28 #include "yahoo.h" |
29 #include "yahoo_packet.h" | 29 #include "yahoo_packet.h" |
30 | 30 |
31 typedef enum { | 31 typedef enum { |
32 YAHOO_STEALTH_DEFAULT = 0, | 32 YAHOO_PRESENCE_DEFAULT = 0, |
33 YAHOO_STEALTH_ONLINE, | 33 YAHOO_PRESENCE_ONLINE, |
34 YAHOO_STEALTH_PERM_OFFLINE | 34 YAHOO_PRESENCE_PERM_OFFLINE |
35 } YahooStealthVisibility; | 35 } YahooPresenceVisibility; |
36 | 36 |
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 { |
44 int idle; | 44 int idle; |
45 int away; | 45 int away; |
46 gboolean sms; | 46 gboolean sms; |
47 char *ip; | 47 char *ip; |
48 gboolean bicon_sent_request; | 48 gboolean bicon_sent_request; |
49 YahooStealthVisibility stealth; | 49 YahooPresenceVisibility presence; |
50 } YahooFriend; | 50 } YahooFriend; |
51 | 51 |
52 YahooFriend *yahoo_friend_find(GaimConnection *gc, const char *name); | 52 YahooFriend *yahoo_friend_find(GaimConnection *gc, const char *name); |
53 YahooFriend *yahoo_friend_find_or_new(GaimConnection *gc, const char *name); | 53 YahooFriend *yahoo_friend_find_or_new(GaimConnection *gc, const char *name); |
54 | 54 |
64 void yahoo_friend_set_buddy_icon_need_request(YahooFriend *f, gboolean needs); | 64 void yahoo_friend_set_buddy_icon_need_request(YahooFriend *f, gboolean needs); |
65 gboolean yahoo_friend_get_buddy_icon_need_request(YahooFriend *f); | 65 gboolean yahoo_friend_get_buddy_icon_need_request(YahooFriend *f); |
66 | 66 |
67 void yahoo_friend_free(gpointer p); | 67 void yahoo_friend_free(gpointer p); |
68 | 68 |
69 void yahoo_process_stealth(GaimConnection *gc, struct yahoo_packet *pkt); | 69 void yahoo_process_presence(GaimConnection *gc, struct yahoo_packet *pkt); |
70 void yahoo_friend_update_stealth(GaimConnection *gc, const char *name, | 70 void yahoo_friend_update_presence(GaimConnection *gc, const char *name, |
71 YahooStealthVisibility stealth); | 71 YahooPresenceVisibility presence); |
72 | 72 |
73 #endif /* _YAHOO_FRIEND_H_ */ | 73 #endif /* _YAHOO_FRIEND_H_ */ |