libpurple/protocols/yahoo/libymsg.h

Sun, 13 Jan 2013 15:17:57 -0600

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 13 Jan 2013 15:17:57 -0600
changeset 33602
6014ed8b3a2b
parent 32686
b0b7ccd98268
parent 33540
5dd3e2938d7b
child 33710
0d7ead568881
permissions
-rw-r--r--

Merge 33548 from release-2.x.y

6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1 /**
27555
afb7cb5c350c Update for file renames.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27554
diff changeset
2 * @file libymsg.h The Yahoo! and Yahoo! JAPAN Protocol Plugins
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
3 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
4 * purple
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
5 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 8045
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 8045
diff changeset
8 * source distribution.
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
9 *
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
13 * (at your option) any later version.
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
14 *
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
18 * GNU General Public License for more details.
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
19 *
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19716
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
23 */
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
24
27560
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
25 #ifndef _LIBYMSG_H_
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
26 #define _LIBYMSG_H_
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
27
14013
86dac5633bd9 [gaim-migrate @ 16496]
Mark Doliner <markdoliner@pidgin.im>
parents: 13851
diff changeset
28 #include "circbuffer.h"
27560
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
29 #include "cmds.h"
6784
6623b18f188a [gaim-migrate @ 7323]
Tim Ringenbach <marv@pidgin.im>
parents: 6729
diff changeset
30 #include "prpl.h"
31285
6f8f1683c6d8 Yahoo: Fix a crash that happens when the PurpleAccount disconnects after
Jan Kaluza <hanzz.k@gmail.com>
parents: 30829
diff changeset
31 #include "network.h"
6784
6623b18f188a [gaim-migrate @ 7323]
Tim Ringenbach <marv@pidgin.im>
parents: 6729
diff changeset
32
29949
902d9eab8f6d Ladies and gentlemen, I give you HTTP-based retrieval of the Yahoo CS server
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29882
diff changeset
33 #define YAHOO_PAGER_HOST_REQ_URL "http://vcs1.msg.yahoo.com/capacity"
30434
f20c37c4ff38 Very hackily implement a fallback mechanism in Yahoo, but not for Yahoo Japan
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29971
diff changeset
34 #define YAHOO_PAGER_HOST_FALLBACK "scsa.msg.yahoo.com"
7827
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
35 #define YAHOO_PAGER_PORT 5050
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
36 #define YAHOO_PAGER_PORT_P2P 5101
25761
4b21fa0be432 Backport a conjunction of the portions of revisions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25760
diff changeset
37 #define YAHOO_LOGIN_URL "https://login.yahoo.com/config/pwtoken_login?src=ymsgr&ts=&token=%s"
4b21fa0be432 Backport a conjunction of the portions of revisions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25760
diff changeset
38 #define YAHOO_TOKEN_URL "https://login.yahoo.com/config/pwtoken_get?src=ymsgr&ts=&login=%s&passwd=%s&chal=%s"
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
39 #define YAHOO_P2P_KEEPALIVE_SECS 300
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
40 #define YAHOO_P2P_SERVER_TIMEOUT 10
7827
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
41 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/"
27127
0a69b3856be6 Open a logged in Yahoo Mail instead of the login screen when possible.
Luke Bratch <l_bratch@yahoo.co.uk>
parents: 26368
diff changeset
42 #define YAHOO_MAIL_URL "http://rd.yahoo.com/messenger/client/?http://mail.yahoo.com/"
7651
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
43 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com"
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
44 #define YAHOO_XFER_PORT 80
22202
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
45 #define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com"
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
46 #define YAHOO_XFER_RELAY_PORT 80
8113
6a2ffc66c022 [gaim-migrate @ 8817]
Tim Ringenbach <marv@pidgin.im>
parents: 8046
diff changeset
47 #define YAHOO_ROOMLIST_URL "http://insider.msg.yahoo.com/ycontent/"
11160
c216000381d7 [gaim-migrate @ 13248]
Daniel Atallah <datallah@pidgin.im>
parents: 11046
diff changeset
48 #define YAHOO_ROOMLIST_LOCALE "us"
29951
f16ddeaed084 Don't need these defines anymore.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29949
diff changeset
49
f16ddeaed084 Don't need these defines anymore.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29949
diff changeset
50 /* Yahoo! JAPAN stuff */
31990
e998e98e9f63 Fix logging into Yahoo! JAPAN. Fixes #14259.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31285
diff changeset
51 #define YAHOOJP_PAGER_HOST_REQ_URL "http://cs1.yahoo.co.jp/capacity"
25761
4b21fa0be432 Backport a conjunction of the portions of revisions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25760
diff changeset
52 #define YAHOOJP_TOKEN_URL "https://login.yahoo.co.jp/config/pwtoken_get?src=ymsgr&ts=&login=%s&passwd=%s&chal=%s"
4b21fa0be432 Backport a conjunction of the portions of revisions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25760
diff changeset
53 #define YAHOOJP_LOGIN_URL "https://login.yahoo.co.jp/config/pwtoken_login?src=ymsgr&ts=&token=%s"
9221
cae2261ba6f2 [gaim-migrate @ 10017]
Ambrose Li <ambrose.li@gmail.com>
parents: 9220
diff changeset
54 #define YAHOOJP_PROFILE_URL "http://profiles.yahoo.co.jp/"
cae2261ba6f2 [gaim-migrate @ 10017]
Ambrose Li <ambrose.li@gmail.com>
parents: 9220
diff changeset
55 #define YAHOOJP_MAIL_URL "http://mail.yahoo.co.jp/"
9164
46904c930b6e [gaim-migrate @ 9949]
Tim Ringenbach <marv@pidgin.im>
parents: 9161
diff changeset
56 #define YAHOOJP_XFER_HOST "filetransfer.msg.yahoo.co.jp"
46904c930b6e [gaim-migrate @ 9949]
Tim Ringenbach <marv@pidgin.im>
parents: 9161
diff changeset
57 #define YAHOOJP_WEBCAM_HOST "wc.yahoo.co.jp"
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
58 /* not sure, must test: */
27335
06a805d4e690 Strip trailing whitespace and comment #endif marcos that close #ifdef macros
Mark Doliner <markdoliner@pidgin.im>
parents: 27165
diff changeset
59 #define YAHOOJP_XFER_RELAY_HOST "relay.msg.yahoo.co.jp"
22202
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
60 #define YAHOOJP_XFER_RELAY_PORT 80
22220
e1ef8feb6199 From what little I could see, it appears that for Yahoo Japan there is only
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22202
diff changeset
61 #define YAHOOJP_ROOMLIST_URL "http://insider.msg.yahoo.co.jp/ycontent/"
e1ef8feb6199 From what little I could see, it appears that for Yahoo Japan there is only
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22202
diff changeset
62 #define YAHOOJP_ROOMLIST_LOCALE "ja"
9164
46904c930b6e [gaim-migrate @ 9949]
Tim Ringenbach <marv@pidgin.im>
parents: 9161
diff changeset
63
12798
f8d553043aee [gaim-migrate @ 15145]
Peter Lawler <pidgin@bleeter.id.au>
parents: 12323
diff changeset
64 #define YAHOO_AUDIBLE_URL "http://us.dl1.yimg.com/download.yahoo.com/dl/aud"
f8d553043aee [gaim-migrate @ 15145]
Peter Lawler <pidgin@bleeter.id.au>
parents: 12323
diff changeset
65
7134
e999c4697e38 [gaim-migrate @ 7701]
Sean Egan <seanegan@pidgin.im>
parents: 6895
diff changeset
66 #define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg"
e999c4697e38 [gaim-migrate @ 7701]
Sean Egan <seanegan@pidgin.im>
parents: 6895
diff changeset
67
30829
2d849d34c5f6 Fix SMS carrier URL per todo's advice. Fixes #12688.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 30434
diff changeset
68 #define YAHOO_SMS_CARRIER_URL "http://validate.msg.yahoo.com"
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
69
27716
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
70 #define YAHOO_USERINFO_URL "http://address.yahoo.com/yab/us?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252"
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
71 #define YAHOOJP_USERINFO_URL "http://address.yahoo.co.jp/yab/jp?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252"
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
72
9306
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
73 #define YAHOO_PICURL_SETTING "picture_url"
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
74 #define YAHOO_PICCKSUM_SETTING "picture_checksum"
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
75 #define YAHOO_PICEXPIRE_SETTING "picture_expire"
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
76
10373
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
77 #define YAHOO_STATUS_TYPE_OFFLINE "offline"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
78 #define YAHOO_STATUS_TYPE_AVAILABLE "available"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
79 #define YAHOO_STATUS_TYPE_BRB "brb"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
80 #define YAHOO_STATUS_TYPE_BUSY "busy"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
81 #define YAHOO_STATUS_TYPE_NOTATHOME "notathome"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
82 #define YAHOO_STATUS_TYPE_NOTATDESK "notatdesk"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
83 #define YAHOO_STATUS_TYPE_NOTINOFFICE "notinoffice"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
84 #define YAHOO_STATUS_TYPE_ONPHONE "onphone"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
85 #define YAHOO_STATUS_TYPE_ONVACATION "onvacation"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
86 #define YAHOO_STATUS_TYPE_OUTTOLUNCH "outtolunch"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
87 #define YAHOO_STATUS_TYPE_STEPPEDOUT "steppedout"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
88 #define YAHOO_STATUS_TYPE_AWAY "away"
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
89 #define YAHOO_STATUS_TYPE_INVISIBLE "invisible"
15589
9f28c50427c1 Yahoo mobile status
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
90 #define YAHOO_STATUS_TYPE_MOBILE "mobile"
10373
0bf7666d02d8 [gaim-migrate @ 11598]
Tim Ringenbach <marv@pidgin.im>
parents: 10360
diff changeset
91
25760
7c082351dfc4 *** Plucked rev d0e53002eb30c6dbf9735ca50784d42141dfc96a (sulabh@soc.pidgin.im):
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24623
diff changeset
92 #define YAHOO_CLIENT_VERSION_ID "4194239"
27855
ddc24f80768e We were actually identifying as a version of Yahoo Messenger that doesn't
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27747
diff changeset
93 #define YAHOO_CLIENT_VERSION "9.0.0.2162"
22401
5fe1761a4a15 Simplified version of the newest patch on #4533 to not try Yahoo protocol
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22366
diff changeset
94
29882
eb8dcf86c219 Change our Yahoo! JAPAN version and version ID's to match the official Yahoo!
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29871
diff changeset
95 #define YAHOOJP_CLIENT_VERSION_ID "4186047"
eb8dcf86c219 Change our Yahoo! JAPAN version and version ID's to match the official Yahoo!
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29871
diff changeset
96 #define YAHOOJP_CLIENT_VERSION "9.0.0.1727"
22401
5fe1761a4a15 Simplified version of the newest patch on #4533 to not try Yahoo protocol
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22366
diff changeset
97
27409
a760d82df1b3 Mimic the official client's HTTP User-Agent strings.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27361
diff changeset
98 #define YAHOO_CLIENT_USERAGENT "Mozilla/5.0"
33540
5dd3e2938d7b Official Yahoo! Messenger clients use a number of User Agent strings when
Catalin Salgau <unknown>
parents: 31990
diff changeset
99 #define YAHOO_CLIENT_USERAGENT_ALIAS "Mozilla/4.0 (compatible; MSIE 5.5)"
25762
0c1a4287c70c Backport the parts of b859960a4a19f57f20db0536c1815a6d79e08e36 that apply to
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25761
diff changeset
100
19642
f27b0a59548e Change Yahoo prpl to use attention API in libpurple. Previous behavior can
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 16534
diff changeset
101 /* Index into attention types list. */
f27b0a59548e Change Yahoo prpl to use attention API in libpurple. Previous behavior can
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 16534
diff changeset
102 #define YAHOO_BUZZ 0
f27b0a59548e Change Yahoo prpl to use attention API in libpurple. Previous behavior can
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 16534
diff changeset
103
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
104 typedef enum {
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
105 YAHOO_PKT_TYPE_SERVER = 0,
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
106 YAHOO_PKT_TYPE_P2P
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
107 } yahoo_pkt_type;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
108
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
109 typedef enum {
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
110 YAHOO_P2P_WE_ARE_CLIENT =0,
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
111 YAHOO_P2P_WE_ARE_SERVER
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
112 } yahoo_p2p_connection_type;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
113
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
114 enum yahoo_status {
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
115 YAHOO_STATUS_AVAILABLE = 0,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
116 YAHOO_STATUS_BRB,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
117 YAHOO_STATUS_BUSY,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
118 YAHOO_STATUS_NOTATHOME,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
119 YAHOO_STATUS_NOTATDESK,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
120 YAHOO_STATUS_NOTINOFFICE,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
121 YAHOO_STATUS_ONPHONE,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
122 YAHOO_STATUS_ONVACATION,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
123 YAHOO_STATUS_OUTTOLUNCH,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
124 YAHOO_STATUS_STEPPEDOUT,
29871
e23f77cac016 yahoo: fix decoding of P2P session_id
Ales Badea <vamposdecampos@gmail.com>
parents: 29324
diff changeset
125 YAHOO_STATUS_P2P = 11,
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
126 YAHOO_STATUS_INVISIBLE = 12,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
127 YAHOO_STATUS_CUSTOM = 99,
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
128 YAHOO_STATUS_IDLE = 999,
7134
e999c4697e38 [gaim-migrate @ 7701]
Sean Egan <seanegan@pidgin.im>
parents: 6895
diff changeset
129 YAHOO_STATUS_WEBLOGIN = 0x5a55aa55,
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
130 YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */
22202
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
131 YAHOO_STATUS_TYPING = 0x16,
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
132 YAHOO_STATUS_DISCONNECTED = 0xffffffff /* in ymsg 15. doesnt mean the normal sense of 'disconnected' */
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
133 };
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
134
28660
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
135 /*
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
136 * Yahoo federated networks. Key 241 in ymsg.
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
137 * If it doesn't exist, it is on Yahoo's netowrk.
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
138 * It if does exist, send to another IM network.
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
139 */
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
140
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
141 typedef enum {
28661
b4705ac57c4c Explicitly define the enum values like Paul wanted. Refs #9814.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28660
diff changeset
142 YAHOO_FEDERATION_NONE = 0, /* No federation - Yahoo! network */
b4705ac57c4c Explicitly define the enum values like Paul wanted. Refs #9814.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28660
diff changeset
143 YAHOO_FEDERATION_OCS = 1, /* LCS or OCS private networks */
b4705ac57c4c Explicitly define the enum values like Paul wanted. Refs #9814.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28660
diff changeset
144 YAHOO_FEDERATION_MSN = 2, /* MSN or Windows Live network */
29324
125eb74677d6 Support Yahoo !PingBox. Includes a couple warning fixes. Fixes #7347.
Kartik Mohta <kartikmohta@gmail.com>
parents: 28786
diff changeset
145 YAHOO_FEDERATION_IBM = 9, /* IBM/Sametime network */
125eb74677d6 Support Yahoo !PingBox. Includes a couple warning fixes. Fixes #7347.
Kartik Mohta <kartikmohta@gmail.com>
parents: 28786
diff changeset
146 YAHOO_FEDERATION_PBX = 100 /* Yahoo! Pingbox service */
28660
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
147 } YahooFederation;
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
148
db3b43e7fcea Handle adding Lotus Sametime and Microsoft OCS buddies to Yahoo! accounts.
Jason Cohen <kryojenik23-pidgin@steltek.com>
parents: 28292
diff changeset
149
9306
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
150 struct yahoo_buddy_icon_upload_data {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
151 PurpleConnection *gc;
9306
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
152 GString *str;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
153 char *filename;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
154 int pos;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
155 int fd;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
156 guint watcher;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
157 };
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
158
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
159 struct yahoo_p2p_data {
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
160 PurpleConnection *gc;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
161 char *host_ip;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
162 char *host_username;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
163 int val_13;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
164 guint input_event;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
165 gint source;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
166 int session_id;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
167 yahoo_p2p_connection_type connection_type;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
168 };
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
169
9376
72964e97c46e [gaim-migrate @ 10184]
Tim Ringenbach <marv@pidgin.im>
parents: 9371
diff changeset
170 struct _YchtConn;
72964e97c46e [gaim-migrate @ 10184]
Tim Ringenbach <marv@pidgin.im>
parents: 9371
diff changeset
171
27716
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
172 typedef struct _YahooPersonalDetails {
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
173 char *id;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
174
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
175 struct {
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
176 char *first;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
177 char *last;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
178 char *middle;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
179 char *nick;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
180 } names;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
181
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
182 struct {
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
183 char *work;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
184 char *home;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
185 char *mobile;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
186 } phone;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
187 } YahooPersonalDetails;
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
188
27959
f842ae57da4e Move from "struct yahoo_data" to "YahooData" to be consistent with other structs
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27875
diff changeset
189 typedef struct {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
190 PurpleConnection *gc;
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
191 int fd;
32686
b0b7ccd98268 Yahoo: Move the "inpa" input watcher into protocol_data.
Andrew Victor <andrew.victor@mxit.com>
parents: 32315
diff changeset
192 guint inpa;
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
193 guchar *rxqueue;
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
194 int rxlen;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
195 PurpleCircBuffer *txbuf;
13201
8c224ef70efa [gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents: 12970
diff changeset
196 guint txhandler;
6784
6623b18f188a [gaim-migrate @ 7323]
Tim Ringenbach <marv@pidgin.im>
parents: 6729
diff changeset
197 GHashTable *friends;
13851
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
198
27416
e99beec5e5c7 Remember the profile ids associated with an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27409
diff changeset
199 char **profiles; /* Multiple profiles can be associated with an account */
27716
a3ed37ab91b8 Allow setting some personal information for an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27679
diff changeset
200 YahooPersonalDetails ypd;
27416
e99beec5e5c7 Remember the profile ids associated with an account.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 27409
diff changeset
201
13851
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
202 /**
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
203 * This is used to keep track of the IMVironment chosen
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
204 * by people you talk to. We don't do very much with
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
205 * this right now... but at least now if the remote user
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
206 * selects an IMVironment we won't reset it back to the
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
207 * default of nothing.
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
208 */
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
209 GHashTable *imvironments;
27bc39ea07f8 [gaim-migrate @ 16306]
Mark Doliner <markdoliner@pidgin.im>
parents: 13689
diff changeset
210
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
211 int current_status;
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
212 gboolean logged_in;
12203
a8ac8491df3a [gaim-migrate @ 14505]
Peter Lawler <pidgin@bleeter.id.au>
parents: 11970
diff changeset
213 GString *tmp_serv_blist, *tmp_serv_ilist, *tmp_serv_plist;
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
214 GSList *confs;
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
215 unsigned int conf_id; /* just a counter */
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
216 gboolean chat_online;
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
217 gboolean in_chat;
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
218 char *chat_name;
19716
3f161bed09f6 Fix yahoo chats again for their new super-duper-ultra-mega secure captcha stuff. "/join chat" still doesn't work, you need to use the roomlist because they now require the chat id to be set (the native client also has this problem). Fixes #2860.
Daniel Atallah <datallah@pidgin.im>
parents: 19642
diff changeset
219 char *pending_chat_room;
3f161bed09f6 Fix yahoo chats again for their new super-duper-ultra-mega secure captcha stuff. "/join chat" still doesn't work, you need to use the roomlist because they now require the chat id to be set (the native client also has this problem). Fixes #2860.
Daniel Atallah <datallah@pidgin.im>
parents: 19642
diff changeset
220 char *pending_chat_id;
3f161bed09f6 Fix yahoo chats again for their new super-duper-ultra-mega secure captcha stuff. "/join chat" still doesn't work, you need to use the roomlist because they now require the chat id to be set (the native client also has this problem). Fixes #2860.
Daniel Atallah <datallah@pidgin.im>
parents: 19642
diff changeset
221 char *pending_chat_topic;
3f161bed09f6 Fix yahoo chats again for their new super-duper-ultra-mega secure captcha stuff. "/join chat" still doesn't work, you need to use the roomlist because they now require the chat id to be set (the native client also has this problem). Fixes #2860.
Daniel Atallah <datallah@pidgin.im>
parents: 19642
diff changeset
222 char *pending_chat_goto;
7134
e999c4697e38 [gaim-migrate @ 7701]
Sean Egan <seanegan@pidgin.im>
parents: 6895
diff changeset
223 char *auth;
13201
8c224ef70efa [gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents: 12970
diff changeset
224 gsize auth_written;
7651
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
225 char *cookie_y;
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
226 char *cookie_t;
29971
a56cfe91bbc1 Rework the Yahoo auth16 sutff a bit such that we now retrieve and use the
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29951
diff changeset
227 char *cookie_b;
7651
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
228 int session_id;
9164
46904c930b6e [gaim-migrate @ 9949]
Tim Ringenbach <marv@pidgin.im>
parents: 9161
diff changeset
229 gboolean jp;
10989
ea41b63cfea5 [gaim-migrate @ 12827]
Daniel Atallah <datallah@pidgin.im>
parents: 10937
diff changeset
230 gboolean wm; /* connected w/ web messenger method */
9306
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
231 /* picture aka buddy icon stuff */
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
232 char *picture_url;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
233 int picture_checksum;
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
234
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
235 /* ew. we have to check the icon before we connect,
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
236 * but can't upload it til we're connected. */
3df21f4d438b [gaim-migrate @ 10114]
Tim Ringenbach <marv@pidgin.im>
parents: 9292
diff changeset
237 struct yahoo_buddy_icon_upload_data *picture_upload_todo;
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
238 PurpleProxyConnectData *buddy_icon_connect_data;
9376
72964e97c46e [gaim-migrate @ 10184]
Tim Ringenbach <marv@pidgin.im>
parents: 9371
diff changeset
239
72964e97c46e [gaim-migrate @ 10184]
Tim Ringenbach <marv@pidgin.im>
parents: 9371
diff changeset
240 struct _YchtConn *ycht;
14416
c95ffd983a39 [gaim-migrate @ 17060]
Mark Doliner <markdoliner@pidgin.im>
parents: 14254
diff changeset
241
c95ffd983a39 [gaim-migrate @ 17060]
Mark Doliner <markdoliner@pidgin.im>
parents: 14254
diff changeset
242 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
243 * This linked list contains PurpleUtilFetchUrlData structs
14416
c95ffd983a39 [gaim-migrate @ 17060]
Mark Doliner <markdoliner@pidgin.im>
parents: 14254
diff changeset
244 * for when we lookup people profile or photo information.
c95ffd983a39 [gaim-migrate @ 17060]
Mark Doliner <markdoliner@pidgin.im>
parents: 14254
diff changeset
245 */
c95ffd983a39 [gaim-migrate @ 17060]
Mark Doliner <markdoliner@pidgin.im>
parents: 14254
diff changeset
246 GSList *url_datas;
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
247 GHashTable *xfer_peer_idstring_map;/* Hey, i dont know, but putting this HashTable next to friends gives a run time fault... */
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
248 GSList *cookies;/* contains all cookies, including _y and _t */
31285
6f8f1683c6d8 Yahoo: Fix a crash that happens when the PurpleAccount disconnects after
Jan Kaluza <hanzz.k@gmail.com>
parents: 30829
diff changeset
249 PurpleNetworkListenData *listen_data;
27335
06a805d4e690 Strip trailing whitespace and comment #endif marcos that close #ifdef macros
Mark Doliner <markdoliner@pidgin.im>
parents: 27165
diff changeset
250
22552
21bcf7de74f1 Fixed bug in which Yahoo contacts were erroneously considered to be blocked,
Evan Schoenberg <evands@pidgin.im>
parents: 22401
diff changeset
251 /**
21bcf7de74f1 Fixed bug in which Yahoo contacts were erroneously considered to be blocked,
Evan Schoenberg <evands@pidgin.im>
parents: 22401
diff changeset
252 * We may receive a list15 in multiple packets with no prior warning as to how many we'll be getting;
21bcf7de74f1 Fixed bug in which Yahoo contacts were erroneously considered to be blocked,
Evan Schoenberg <evands@pidgin.im>
parents: 22401
diff changeset
253 * the server expects us to keep track of the group for which it is sending us contact names.
21bcf7de74f1 Fixed bug in which Yahoo contacts were erroneously considered to be blocked,
Evan Schoenberg <evands@pidgin.im>
parents: 22401
diff changeset
254 */
21bcf7de74f1 Fixed bug in which Yahoo contacts were erroneously considered to be blocked,
Evan Schoenberg <evands@pidgin.im>
parents: 22401
diff changeset
255 char *current_list15_grp;
24334
63714c02b0fd Only send a yahoo ping once an hour. The server doesn't like it when send it
Daniel Atallah <datallah@pidgin.im>
parents: 24181
diff changeset
256 time_t last_ping;
63714c02b0fd Only send a yahoo ping once an hour. The server doesn't like it when send it
Daniel Atallah <datallah@pidgin.im>
parents: 24181
diff changeset
257 time_t last_keepalive;
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
258 GHashTable *peers; /* information about p2p data */
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
259 int yahoo_p2p_timer;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
260 int yahoo_local_p2p_server_fd;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
261 int yahoo_p2p_server_watcher;
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
262 GHashTable *sms_carrier; /* sms carrier data */
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
263 guint yahoo_p2p_server_timeout_handle;
27959
f842ae57da4e Move from "struct yahoo_data" to "YahooData" to be consistent with other structs
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27875
diff changeset
264 } YahooData;
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
265
9603
1893bf2387c1 [gaim-migrate @ 10446]
Tim Ringenbach <marv@pidgin.im>
parents: 9409
diff changeset
266 #define YAHOO_MAX_STATUS_MESSAGE_LENGTH (255)
6847
0fda06bb588a [gaim-migrate @ 7392]
Tim Ringenbach <marv@pidgin.im>
parents: 6784
diff changeset
267
24623
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
268 /*
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
269 * Current Maximum Length for Instant Messages
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
270 *
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
271 * This was found by experiment.
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
272 *
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
273 * The YMSG protocol allows a message of up to 948 bytes, but the official client
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
274 * limits to 800 characters. According to experiments I conducted, it seems that
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
275 * the discrepancy is to allow some leeway for messages with mixed single- and
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
276 * multi-byte characters, as I was able to send messages of 840 and 932 bytes
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
277 * by using some multibyte characters (some random Chinese or Japanese characters,
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
278 * to be precise). - rekkanoryo
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
279 */
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
280 #define YAHOO_MAX_MESSAGE_LENGTH_BYTES 948
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
281 #define YAHOO_MAX_MESSAGE_LENGTH_CHARS 800
cc86f44f12d0 This was originally a patch from Brian Geppert that corrected the 'silently
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 24334
diff changeset
282
7651
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
283 /* sometimes i wish prpls could #include things from other prpls. then i could just
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
284 * use the routines from libfaim and not have to admit to knowing how they work. */
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
285 #define yahoo_put16(buf, data) ( \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
286 (*(buf) = (unsigned char)((data)>>8)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
287 (*((buf)+1) = (unsigned char)(data)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
288 2)
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
289 #define yahoo_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff))
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
290 #define yahoo_put32(buf, data) ( \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
291 (*((buf)) = (unsigned char)((data)>>24)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
292 (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
293 (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
294 (*((buf)+3) = (unsigned char)(data)&0xff), \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
295 4)
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
296 #define yahoo_get32(buf) ((((*(buf))<<24)&0xff000000) + \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
297 (((*((buf)+1))<<16)&0x00ff0000) + \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
298 (((*((buf)+2))<< 8)&0x0000ff00) + \
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
299 (((*((buf)+3) )&0x000000ff)))
43663aa7ef68 [gaim-migrate @ 8295]
Tim Ringenbach <marv@pidgin.im>
parents: 7134
diff changeset
300
6729
c21179a914e5 [gaim-migrate @ 7256]
Tim Ringenbach <marv@pidgin.im>
parents: 6629
diff changeset
301 /* util.c */
12323
f52908fb23b0 [gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents: 12203
diff changeset
302 void yahoo_init_colorht(void);
f52908fb23b0 [gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents: 12203
diff changeset
303 void yahoo_dest_colorht(void);
6629
9d6bbc91ba24 [gaim-migrate @ 7153]
Tim Ringenbach <marv@pidgin.im>
parents: 6513
diff changeset
304 char *yahoo_codes_to_html(const char *x);
28292
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
305
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
306 /**
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
307 * This function takes a normal HTML message and converts it to the message
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
308 * format used by Yahoo, which uses a frankensteinish combination of ANSI
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
309 * escape codes and broken HTML.
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
310 *
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
311 * It results in slightly different output than would be sent by official
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
312 * Yahoo clients. The two main differences are:
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
313 *
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
314 * 1. We always close all tags, whereas official Yahoo clients leave tags
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
315 * dangling open at the end of each message (and the client treats them
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
316 * as closed).
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
317 * 2. We always close inner tags first before closing outter tags.
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
318 *
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
319 * For example, if you want to send this message:
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
320 * <b> bold <i> bolditalic </i></b><i> italic </i>
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
321 * Official Yahoo clients would send:
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
322 * ESC[1m bold ESC[2m bolditalic ESC[x1m italic
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
323 * But we will send:
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
324 * ESC[1m bold ESC[2m bolditalic ESC[x2mESC[x1mESC[2m italic ESC[x2m
e1f21cbb9b4d * Change yahoo_html_to_codes() a little to hopefully be more straight forward
Mark Doliner <markdoliner@pidgin.im>
parents: 27959
diff changeset
325 */
6629
9d6bbc91ba24 [gaim-migrate @ 7153]
Tim Ringenbach <marv@pidgin.im>
parents: 6513
diff changeset
326 char *yahoo_html_to_codes(const char *src);
6513
191231aceb3f [gaim-migrate @ 7030]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
327
24181
e028e31dcc67 Do a better job of detecting if the yahoo account is connecting through a HTTP
Daniel Atallah <datallah@pidgin.im>
parents: 22832
diff changeset
328 gboolean
e028e31dcc67 Do a better job of detecting if the yahoo account is connecting through a HTTP
Daniel Atallah <datallah@pidgin.im>
parents: 22832
diff changeset
329 yahoo_account_use_http_proxy(PurpleConnection *conn);
e028e31dcc67 Do a better job of detecting if the yahoo account is connecting through a HTTP
Daniel Atallah <datallah@pidgin.im>
parents: 22832
diff changeset
330
7827
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
331 /**
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
332 * Encode some text to send to the yahoo server.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
333 *
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
334 * @param gc The connection handle.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
335 * @param str The null terminated utf8 string to encode.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
336 * @param utf8 If not @c NULL, whether utf8 is okay or not.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
337 * Even if it is okay, we may not use it. If we
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
338 * used it, we set this to @c TRUE, else to
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
339 * @c FALSE. If @c NULL, false is assumed, and
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
340 * it is not dereferenced.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
341 * @return The g_malloced string in the appropriate encoding.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
342 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
343 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8);
7827
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
344
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
345 /**
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
346 * Decode some text received from the server.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
347 *
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
348 * @param gc The gc handle.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
349 * @param str The null terminated string to decode.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
350 * @param utf8 Did the server tell us it was supposed to be utf8?
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
351 * @return The decoded, utf-8 string, which must be g_free()'d.
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
352 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
353 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8);
7827
080c98045e12 [gaim-migrate @ 8479]
Ethan Blanton <elb@pidgin.im>
parents: 7651
diff changeset
354
22259
bc9fcfd10196 disapproval of revision 'db9b3bc9d4427a6a03d1c25aac5215bf0f8e05ec'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22248
diff changeset
355 char *yahoo_convert_to_numeric(const char *str);
bc9fcfd10196 disapproval of revision 'db9b3bc9d4427a6a03d1c25aac5215bf0f8e05ec'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22248
diff changeset
356
28786
a0366821d1e4 Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 28661
diff changeset
357 YahooFederation yahoo_get_federation_from_name(const char *who);
9220
d8b1478a406e [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
358
9161
0561de0af1c6 [gaim-migrate @ 9946]
Tim Ringenbach <marv@pidgin.im>
parents: 9062
diff changeset
359 /* yahoo_profile.c */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15589
diff changeset
360 void yahoo_get_info(PurpleConnection *gc, const char *name);
9161
0561de0af1c6 [gaim-migrate @ 9946]
Tim Ringenbach <marv@pidgin.im>
parents: 9062
diff changeset
361
27560
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
362 /* libymsg.h - these functions were formerly static but need not to be for the
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
363 * new two-prpl model. */
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
364 const char *yahoo_list_icon(PurpleAccount *a, PurpleBuddy *b);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
365 const char *yahoo_list_emblem(PurpleBuddy *b);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
366 char *yahoo_status_text(PurpleBuddy *b);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
367 void yahoo_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
368 GList *yahoo_status_types(PurpleAccount *account);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
369 GList *yahoo_blist_node_menu(PurpleBlistNode *node);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
370 void yahoo_login(PurpleAccount *account);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
371 void yahoo_close(PurpleConnection *gc);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
372 int yahoo_send_im(PurpleConnection *gc, const char *who, const char *what, PurpleMessageFlags flags);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
373 unsigned int yahoo_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
374 void yahoo_set_status(PurpleAccount *account, PurpleStatus *status);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
375 void yahoo_set_idle(PurpleConnection *gc, int idle);
32315
2550a39e0285 Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31990
diff changeset
376 void yahoo_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *g, const char *message);
27560
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
377 void yahoo_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
378 void yahoo_add_deny(PurpleConnection *gc, const char *who);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
379 void yahoo_rem_deny(PurpleConnection *gc, const char *who);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
380 void yahoo_set_permit_deny(PurpleConnection *gc);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
381 void yahoo_keepalive(PurpleConnection *gc);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
382 void yahoo_change_buddys_group(PurpleConnection *gc, const char *who, const char *old_group, const char *new_group);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
383 void yahoo_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
384 gboolean yahoo_offline_message(const PurpleBuddy *buddy);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
385 gboolean yahoo_send_attention(PurpleConnection *gc, const char *username, guint type);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
386 GList *yahoo_attention_types(PurpleAccount *account);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
387
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
388 GList *yahoo_actions(PurplePlugin *plugin, gpointer context);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
389 void yahoopurple_register_commands(void);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
390
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
391 PurpleCmdRet yahoopurple_cmd_buzz(PurpleConversation *c, const gchar *cmd, gchar **args, gchar **error, void *data);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
392 PurpleCmdRet yahoopurple_cmd_chat_join(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data);
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
393 PurpleCmdRet yahoopurple_cmd_chat_list(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data);
22202
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
394 /* needed for xfer, thought theyd be useful for other enhancements later on
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
395 Returns list of cookies stored in yahoo_data formatted as a single null terminated string
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
396 returned value must be g_freed
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
397 */
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
398 gchar* yahoo_get_cookies(PurpleConnection *gc);
e42ab2e3eba1 This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents: 22201
diff changeset
399
26362
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
400 /* send p2p pkt containing our encoded ip, asking peer to connect to us */
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
401 void yahoo_send_p2p_pkt(PurpleConnection *gc, const char *who, int val_13);
de9cf498a73a resolved conflict -- merged im.pidgin.pidgin to im.pidgin.soc.2008.yahoo
Sulabh Mahajan <sulabh@pidgin.im>
parents: 26360
diff changeset
402
27560
95e7692b99eb Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27555
diff changeset
403 #endif /* _LIBYMSG_H_ */

mercurial