libpurple/protocols/msn/msn.h

Fri, 11 Apr 2014 20:08:22 +0200

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Fri, 11 Apr 2014 20:08:22 +0200
changeset 35827
c7c855c36c9b
parent 32091
5061380d9fee
child 36584
36e13bdb3e35
permissions
-rw-r--r--

imgstore: unref msn

4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * @file msn.h The MSN protocol plugin
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
4 * purple
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
9198
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
8 * source distribution.
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6516
diff changeset
9 *
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * (at your option) any later version.
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 *
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * GNU General Public License for more details.
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 *
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
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: 19643
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
23 */
29305
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
24 #ifndef MSN_H
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
25 #define MSN_H
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
26
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
27 typedef enum
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
28 {
31436
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
29 MSN_CAP_VIA_MOBILE = 0x0000001,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
30 MSN_CAP_VIA_TEXAS = 0x0000002,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
31 MSN_CAP_INK_GIF = 0x0000004,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
32 MSN_CAP_INK_ISF = 0x0000008,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
33 MSN_CAP_VIDEO_CHAT = 0x0000010,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
34 MSN_CAP_PACKET = 0x0000020,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
35 MSN_CAP_MOBILE_ON = 0x0000040,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
36 MSN_CAP_WEB_WATCH = 0x0000080,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
37 MSN_CAP_ACTIVITIES = 0x0000100,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
38 MSN_CAP_VIA_WEBIM = 0x0000200,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
39 MSN_CAP_MOBILE_DEV = 0x0000400,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
40 MSN_CAP_VIA_FEDERATED = 0x0000800,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
41 MSN_CAP_SPACE = 0x0001000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
42 MSN_CAP_MCE = 0x0002000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
43 MSN_CAP_DIRECTIM = 0x0004000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
44 MSN_CAP_WINKS = 0x0008000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
45 MSN_CAP_SEARCH = 0x0010000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
46 MSN_CAP_BOT = 0x0020000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
47 MSN_CAP_VOICEIM = 0x0040000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
48 MSN_CAP_SCHANNEL = 0x0080000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
49 MSN_CAP_SIP_INVITE = 0x0100000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
50 MSN_CAP_MULTI_VV = 0x0200000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
51 MSN_CAP_SDRIVE = 0x0400000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
52 MSN_CAP_PAGEMODE_MSG = 0x080000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
53 MSN_CAP_ONECARE = 0x1000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
54 MSN_CAP_P2P_TURN = 0x2000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
55 MSN_CAP_P2P_BOOTSTRAP_VIA_UUN = 0x4000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
56 MSN_CAP_ALIASED = 0x8000000
29305
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
57 } MsnClientCaps;
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
58
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
59 typedef enum
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
60 {
31436
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
61 MSN_EXT_CAP_SMS_ONLY = 0x1,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
62 MSN_EXT_CAP_VOICE_OVER_MSNP = 0x2,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
63 MSN_EXT_CAP_UUCP_SIP = 0x4,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
64 MSN_EXT_CAP_APP_MSGS = 0x8,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
65 MSN_EXT_CAP_RTC_VIDEO = 0x10,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
66 MSN_EXT_CAP_P2PV2 = 0x20,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
67 MSN_EXT_CAP_AUTH_WEBIM = 0x40,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
68 MSN_EXT_CAP_1ON1_VIA_GROUP = 0x80,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
69 MSN_EXT_CAP_OFFLINEIM = 0x100,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
70 MSN_EXT_CAP_SHARING_VIDEO = 0x200,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
71 MSN_EXT_CAP_NUDGE = 0x400,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
72 MSN_EXT_CAP_CIRCLE_VOICEIM = 0x800,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
73 MSN_EXT_CAP_SHARING = 0x1000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
74 MSN_EXT_CAP_P2P_MIXER_RELAY = 0x8000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
75 MSN_EXT_CAP_CONV_WINDOW_FT = 0x20000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
76 MSN_EXT_CAP_VIDEO_16x9 = 0x40000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
77 MSN_EXT_CAP_P2P_ENVELOPE = 0x80000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
78 MSN_EXT_CAP_YAHOOIM_DISABLE = 0x400000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
79 MSN_EXT_CAP_SIP_TUNNELv2 = 0x800000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
80 MSN_EXT_CAP_VOICE_CLIP_WMA = 0x1000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
81 MSN_EXT_CAP_VOICE_CLIP_CIRCLEIM = 0x2000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
82 MSN_EXT_CAP_SOCIAL_NEWS = 0x4000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
83 MSN_EXT_CAP_CUSTOM_SMILEY = 0x8000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
84 MSN_EXT_CAP_UTF8_MOODS = 0x10000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
85 MSN_EXT_CAP_FTURN = 0x20000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
86 MSN_EXT_CAP_P4_ACTIVITY = 0x40000000,
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
87 MSN_EXT_CAP_MUC = 0x80000000
29305
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
88 } MsnClientExtCaps;
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
89
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
90 typedef enum
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
91 {
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
92 MSN_CLIENT_VER_5_0 = 0x00,
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
93 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
94 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
95 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
96 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
97 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
98 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
99 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
100 MSN_CLIENT_VER_8_5 = 0x80, /* MSNC8 */
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
101 MSN_CLIENT_VER_9_0 = 0x90, /* MSNC9 */
31436
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
102 MSN_CLIENT_VER_14_0 = 0xA0, /* MSNC10 */
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
103 MSN_CLIENT_VER_15_0 = 0xB0 /* MSNC11 */
29305
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
104 } MsnClientVerId;
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105
5872
754c63f29b77 [gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents: 5717
diff changeset
106 #include "internal.h"
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
107
30949
db6e378c493b Replace servconn.h with session.h because it's the one needed here.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents: 30948
diff changeset
108 #include "session.h"
9193
6e76f1367896 [gaim-migrate @ 9988]
Felipe Contreras <felipe.contreras@gmail.com>
parents: 8886
diff changeset
109
24420
e83317602b22 attempts to resend message on switchboard error once, tested by maually
Ka-Hing Cheung <khc@pidgin.im>
parents: 23817
diff changeset
110 #include "msg.h"
e83317602b22 attempts to resend message on switchboard error once, tested by maually
Ka-Hing Cheung <khc@pidgin.im>
parents: 23817
diff changeset
111
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112 #define MSN_BUF_LEN 8192
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
113
23817
aff31c9b1fad Clean up some #define's in msn.h and various supporting changes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23790
diff changeset
114 /* Windows Live Messenger Server*/
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
115 #define MSN_SERVER "messenger.hotmail.com"
19989
1f1bb361a75a A fix from Laszlo Pandy to make the MSN HTTP Method work again. Fixes #2638 and should make a number of people happy. This introduces a new string that isn't marked as translatable for 2.2.0 because it is so late in the game.
Daniel Atallah <datallah@pidgin.im>
parents: 19913
diff changeset
116 #define MSN_HTTPCONN_SERVER "gateway.messenger.hotmail.com"
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
117 #define MSN_PORT 1863
32091
5061380d9fee Pluck all MSNP18 changes. This is pretty much to fix sending OIMs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31436
diff changeset
118 #define WLM_PROT_VER 18
13856
a6511183749e [gaim-migrate @ 16546]
Ma Yuan <mayuan2006@gmail.com>
parents: 13855
diff changeset
119
32091
5061380d9fee Pluck all MSNP18 changes. This is pretty much to fix sending OIMs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31436
diff changeset
120 #define WLM_MAX_PROTOCOL 18
5061380d9fee Pluck all MSNP18 changes. This is pretty much to fix sending OIMs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31436
diff changeset
121 #define WLM_MIN_PROTOCOL 18
13853
cccd9dd599eb [gaim-migrate @ 16329]
Ma Yuan <mayuan2006@gmail.com>
parents: 13369
diff changeset
122
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
123 #define MSN_TYPING_RECV_TIMEOUT 6
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
124 #define MSN_TYPING_SEND_TIMEOUT 4
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
125
17533
1968afe33448 Improve parsing user info for MSN, Fixes #690
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
126 #define PROFILE_URL "http://spaces.live.com/profile.aspx?mem="
13862
9d790ad9fc7a [gaim-migrate @ 16654]
Ma Yuan <mayuan2006@gmail.com>
parents: 13861
diff changeset
127 #define PHOTO_URL " contactparams:photopreauthurl=\""
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
128
10504
eae130eefbfe [gaim-migrate @ 11796]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 10481
diff changeset
129 #define BUDDY_ALIAS_MAXLEN 387
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
130
26738
b6314eb1f63d Inform the user when someone tries to initiate a video call with them in msn.
Michael Ruprecht <maiku@pidgin.im>
parents: 24420
diff changeset
131 #define MSN_CAM_GUID "4BD96FC0-AB17-4425-A14A-439185962DC8"
b6314eb1f63d Inform the user when someone tries to initiate a video call with them in msn.
Michael Ruprecht <maiku@pidgin.im>
parents: 24420
diff changeset
132 #define MSN_CAM_REQUEST_GUID "1C9AA97E-9C05-4583-A3BD-908A196F1E92"
23817
aff31c9b1fad Clean up some #define's in msn.h and various supporting changes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23790
diff changeset
133 #define MSN_FT_GUID "5D3E02AB-6190-11D3-BBBB-00C04F795683"
aff31c9b1fad Clean up some #define's in msn.h and various supporting changes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23790
diff changeset
134 #define MSN_OBJ_GUID "A4268EEC-FEC5-49E5-95C3-F126696BDBF6"
4542
05a476dec582 [gaim-migrate @ 4821]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
135
5316
ec9cbe50e70c [gaim-migrate @ 5688]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
136 #define MSN_CLIENTINFO \
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
137 "Client-Name: Purple/" VERSION "\r\n" \
6786
096ebddea1f3 [gaim-migrate @ 7325]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
138 "Chat-Logging: Y\r\n"
5316
ec9cbe50e70c [gaim-migrate @ 5688]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
139
19643
1794c23309d3 In MSN prpl, use attention API. Can be disabled by undefining
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 17533
diff changeset
140 /* Index into attention_types */
1794c23309d3 In MSN prpl, use attention API. Can be disabled by undefining
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 17533
diff changeset
141 #define MSN_NUDGE 0
1794c23309d3 In MSN prpl, use attention API. Can be disabled by undefining
Jeff Connelly <jeff2@soc.pidgin.im>
parents: 17533
diff changeset
142
29420
c81c525111db Initial support for msnp16, based on patch by Masca.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 28959
diff changeset
143 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_9_0
31436
1f56689dc398 Updated client capabilities and networks from msnpsharp.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 31079
diff changeset
144 #define MSN_CLIENT_ID_CAPABILITIES (MSN_CAP_PACKET|MSN_CAP_INK_GIF|MSN_CAP_VOICEIM)
29420
c81c525111db Initial support for msnp16, based on patch by Masca.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 28959
diff changeset
145 #define MSN_CLIENT_ID_EXT_CAPS (0)
7590
54b26062c7e0 [gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents: 6832
diff changeset
146
54b26062c7e0 [gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents: 6832
diff changeset
147 #define MSN_CLIENT_ID \
54b26062c7e0 [gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents: 6832
diff changeset
148 ((MSN_CLIENT_ID_VERSION << 24) | \
54b26062c7e0 [gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents: 6832
diff changeset
149 (MSN_CLIENT_ID_CAPABILITIES))
54b26062c7e0 [gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents: 6832
diff changeset
150
30196
6a2c93988900 Implement [gs]et_public_alias in MSN.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29305
diff changeset
151 void
6a2c93988900 Implement [gs]et_public_alias in MSN.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29305
diff changeset
152 msn_set_public_alias(PurpleConnection *gc, const char *alias,
6a2c93988900 Implement [gs]et_public_alias in MSN.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29305
diff changeset
153 PurpleSetPublicAliasSuccessCallback success_cb,
6a2c93988900 Implement [gs]et_public_alias in MSN.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29305
diff changeset
154 PurpleSetPublicAliasFailureCallback failure_cb);
20542
e92b022fd611 In the initial ADL listing, send the commands in the correct sequence as required by the server: BLP, ADL and PRP. When the server acknowledges this initial ADL, send CHG with status information
Carlos Silva <typ0@pidgin.im>
parents: 20532
diff changeset
155 void msn_send_privacy(PurpleConnection *gc);
24420
e83317602b22 attempts to resend message on switchboard error once, tested by maually
Ka-Hing Cheung <khc@pidgin.im>
parents: 23817
diff changeset
156 void msn_send_im_message(MsnSession *session, MsnMessage *msg);
20476
198222e01a7d The second msn-p13-merge-head.diff.gz from SF Patch #162854 from Ka-Hing Cheung.
Richard Laager <rlaager@pidgin.im>
parents: 20472
diff changeset
157
29305
202cb72ed5b0 Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents: 28959
diff changeset
158 #endif /* MSN_H */

mercurial