Mercurial > pidgin
comparison libpurple/protocols/msn/msn.h @ 31558:ce968e115c95
propagate from branch 'im.pidgin.cpw.masca.p2p' (head 33ca865dacb9e5bcf763d06f6a42cbaca337cc64)
to branch 'im.pidgin.pidgin' (head 92f47f4e8b0cbb107fd97e1ab814d1cedbf109ad)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 06 May 2011 06:25:14 +0000 |
parents | d235da74af79 |
children | 2213de1a18f0 |
comparison
equal
deleted
inserted
replaced
31557:f021d93a1f9b | 31558:ce968e115c95 |
---|---|
24 #ifndef MSN_H | 24 #ifndef MSN_H |
25 #define MSN_H | 25 #define MSN_H |
26 | 26 |
27 typedef enum | 27 typedef enum |
28 { | 28 { |
29 MSN_CLIENT_CAP_WIN_MOBILE = 0x0000001, | 29 MSN_CAP_VIA_MOBILE = 0x0000001, |
30 MSN_CLIENT_CAP_INK_GIF = 0x0000004, | 30 MSN_CAP_VIA_TEXAS = 0x0000002, |
31 MSN_CLIENT_CAP_INK_ISF = 0x0000008, | 31 MSN_CAP_INK_GIF = 0x0000004, |
32 MSN_CLIENT_CAP_VIDEO_CHAT = 0x0000010, | 32 MSN_CAP_INK_ISF = 0x0000008, |
33 MSN_CLIENT_CAP_PACKET = 0x0000020, | 33 MSN_CAP_VIDEO_CHAT = 0x0000010, |
34 MSN_CLIENT_CAP_MSNMOBILE = 0x0000040, | 34 MSN_CAP_PACKET = 0x0000020, |
35 MSN_CLIENT_CAP_MSNDIRECT = 0x0000080, | 35 MSN_CAP_MOBILE_ON = 0x0000040, |
36 MSN_CLIENT_CAP_WEBMSGR = 0x0000200, | 36 MSN_CAP_WEB_WATCH = 0x0000080, |
37 MSN_CLIENT_CAP_TGW = 0x0000800, | 37 MSN_CAP_ACTIVITIES = 0x0000100, |
38 MSN_CLIENT_CAP_SPACE = 0x0001000, | 38 MSN_CAP_VIA_WEBIM = 0x0000200, |
39 MSN_CLIENT_CAP_MCE = 0x0002000, | 39 MSN_CAP_MOBILE_DEV = 0x0000400, |
40 MSN_CLIENT_CAP_DIRECTIM = 0x0004000, | 40 MSN_CAP_VIA_FEDERATED = 0x0000800, |
41 MSN_CLIENT_CAP_WINKS = 0x0008000, | 41 MSN_CAP_SPACE = 0x0001000, |
42 MSN_CLIENT_CAP_SEARCH = 0x0010000, | 42 MSN_CAP_MCE = 0x0002000, |
43 MSN_CLIENT_CAP_BOT = 0x0020000, | 43 MSN_CAP_DIRECTIM = 0x0004000, |
44 MSN_CLIENT_CAP_VOICEIM = 0x0040000, | 44 MSN_CAP_WINKS = 0x0008000, |
45 MSN_CLIENT_CAP_SCHANNEL = 0x0080000, | 45 MSN_CAP_SEARCH = 0x0010000, |
46 MSN_CLIENT_CAP_SIP_INVITE = 0x0100000, | 46 MSN_CAP_BOT = 0x0020000, |
47 MSN_CLIENT_CAP_SDRIVE = 0x0400000, | 47 MSN_CAP_VOICEIM = 0x0040000, |
48 MSN_CLIENT_CAP_ONECARE = 0x1000000, | 48 MSN_CAP_SCHANNEL = 0x0080000, |
49 MSN_CLIENT_CAP_P2P_TURN = 0x2000000, | 49 MSN_CAP_SIP_INVITE = 0x0100000, |
50 MSN_CLIENT_CAP_P2P_BOOTSTRAP_VIA_UUN = 0x4000000, | 50 MSN_CAP_MULTI_VV = 0x0200000, |
51 MSN_CAP_SDRIVE = 0x0400000, | |
52 MSN_CAP_PAGEMODE_MSG = 0x080000, | |
53 MSN_CAP_ONECARE = 0x1000000, | |
54 MSN_CAP_P2P_TURN = 0x2000000, | |
55 MSN_CAP_P2P_BOOTSTRAP_VIA_UUN = 0x4000000, | |
56 MSN_CAP_ALIASED = 0x8000000 | |
51 } MsnClientCaps; | 57 } MsnClientCaps; |
52 | 58 |
53 typedef enum | 59 typedef enum |
54 { | 60 { |
55 MSN_CLIENT_EXT_CAP_RTC_VIDEO = 0x10, | 61 MSN_EXT_CAP_SMS_ONLY = 0x1, |
56 MSN_CLIENT_EXT_CAP_P2PV2 = 0x20 | 62 MSN_EXT_CAP_VOICE_OVER_MSNP = 0x2, |
63 MSN_EXT_CAP_UUCP_SIP = 0x4, | |
64 MSN_EXT_CAP_APP_MSGS = 0x8, | |
65 MSN_EXT_CAP_RTC_VIDEO = 0x10, | |
66 MSN_EXT_CAP_P2PV2 = 0x20, | |
67 MSN_EXT_CAP_AUTH_WEBIM = 0x40, | |
68 MSN_EXT_CAP_1ON1_VIA_GROUP = 0x80, | |
69 MSN_EXT_CAP_OFFLINEIM = 0x100, | |
70 MSN_EXT_CAP_SHARING_VIDEO = 0x200, | |
71 MSN_EXT_CAP_NUDGE = 0x400, | |
72 MSN_EXT_CAP_CIRCLE_VOICEIM = 0x800, | |
73 MSN_EXT_CAP_SHARING = 0x1000, | |
74 MSN_EXT_CAP_P2P_MIXER_RELAY = 0x8000, | |
75 MSN_EXT_CAP_CONV_WINDOW_FT = 0x20000, | |
76 MSN_EXT_CAP_VIDEO_16x9 = 0x40000, | |
77 MSN_EXT_CAP_P2P_ENVELOPE = 0x80000, | |
78 MSN_EXT_CAP_YAHOOIM_DISABLE = 0x400000, | |
79 MSN_EXT_CAP_SIP_TUNNELv2 = 0x800000, | |
80 MSN_EXT_CAP_VOICE_CLIP_WMA = 0x1000000, | |
81 MSN_EXT_CAP_VOICE_CLIP_CIRCLEIM = 0x2000000, | |
82 MSN_EXT_CAP_SOCIAL_NEWS = 0x4000000, | |
83 MSN_EXT_CAP_CUSTOM_SMILEY = 0x8000000, | |
84 MSN_EXT_CAP_UTF8_MOODS = 0x10000000, | |
85 MSN_EXT_CAP_FTURN = 0x20000000, | |
86 MSN_EXT_CAP_P4_ACTIVITY = 0x40000000, | |
87 MSN_EXT_CAP_MUC = 0x80000000 | |
57 } MsnClientExtCaps; | 88 } MsnClientExtCaps; |
58 | 89 |
59 typedef enum | 90 typedef enum |
60 { | 91 { |
61 MSN_CLIENT_VER_5_0 = 0x00, | 92 MSN_CLIENT_VER_5_0 = 0x00, |
66 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */ | 97 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */ |
67 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */ | 98 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */ |
68 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */ | 99 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */ |
69 MSN_CLIENT_VER_8_5 = 0x80, /* MSNC8 */ | 100 MSN_CLIENT_VER_8_5 = 0x80, /* MSNC8 */ |
70 MSN_CLIENT_VER_9_0 = 0x90, /* MSNC9 */ | 101 MSN_CLIENT_VER_9_0 = 0x90, /* MSNC9 */ |
71 MSN_CLIENT_VER_14_0 = 0xA0 /* MSNC10 */ | 102 MSN_CLIENT_VER_14_0 = 0xA0, /* MSNC10 */ |
103 MSN_CLIENT_VER_15_0 = 0xB0 /* MSNC11 */ | |
72 } MsnClientVerId; | 104 } MsnClientVerId; |
73 | 105 |
74 #include "internal.h" | 106 #include "internal.h" |
75 | 107 |
76 #include "session.h" | 108 #include "session.h" |
107 | 139 |
108 /* Index into attention_types */ | 140 /* Index into attention_types */ |
109 #define MSN_NUDGE 0 | 141 #define MSN_NUDGE 0 |
110 | 142 |
111 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_9_0 | 143 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_9_0 |
112 #define MSN_CLIENT_ID_CAPABILITIES (MSN_CLIENT_CAP_PACKET|MSN_CLIENT_CAP_INK_GIF|MSN_CLIENT_CAP_VOICEIM) | 144 #define MSN_CLIENT_ID_CAPABILITIES (MSN_CAP_PACKET|MSN_CAP_INK_GIF|MSN_CAP_VOICEIM) |
113 #define MSN_CLIENT_ID_EXT_CAPS (0) | 145 #define MSN_CLIENT_ID_EXT_CAPS (0) |
114 | 146 |
115 #define MSN_CLIENT_ID \ | 147 #define MSN_CLIENT_ID \ |
116 ((MSN_CLIENT_ID_VERSION << 24) | \ | 148 ((MSN_CLIENT_ID_VERSION << 24) | \ |
117 (MSN_CLIENT_ID_CAPABILITIES)) | 149 (MSN_CLIENT_ID_CAPABILITIES)) |