Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msn.h @ 23523:31b5a1334e7e
Modifications to the MSN code for some stuff I'll be doing in later
commits.
* Rename MsnUserType to MsnNetwork, because it's a really a Network
ID. Updated the list of networks based on msnpiki.
* Updated list of Client capabilities based on ZoRoNaX' blog:
http://zoronax.spaces.live.com/blog/cns!4A0B813054895814!156.entry
* Save the clientid of contacts.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 15 Jun 2008 08:08:22 +0000 |
parents | 75be80ddeca5 |
children | efa4534fd23a |
comparison
equal
deleted
inserted
replaced
23522:fd124c21ebb7 | 23523:31b5a1334e7e |
---|---|
103 } MsnListOp; | 103 } MsnListOp; |
104 #define MSN_LIST_OP_MASK 0x07 | 104 #define MSN_LIST_OP_MASK 0x07 |
105 | 105 |
106 typedef enum | 106 typedef enum |
107 { | 107 { |
108 MSN_CLIENT_CAP_WIN_MOBILE = 0x00001, | 108 MSN_CLIENT_CAP_WIN_MOBILE = 0x000001, |
109 MSN_CLIENT_CAP_UNKNOWN_1 = 0x00002, | 109 MSN_CLIENT_CAP_INK_GIF = 0x000004, |
110 MSN_CLIENT_CAP_INK_GIF = 0x00004, | 110 MSN_CLIENT_CAP_INK_ISF = 0x000008, |
111 MSN_CLIENT_CAP_INK_ISF = 0x00008, | 111 MSN_CLIENT_CAP_VIDEO_CHAT = 0x000010, |
112 MSN_CLIENT_CAP_VIDEO_CHAT = 0x00010, | 112 MSN_CLIENT_CAP_PACKET = 0x000020, |
113 MSN_CLIENT_CAP_BASE = 0x00020, | 113 MSN_CLIENT_CAP_MSNMOBILE = 0x000040, |
114 MSN_CLIENT_CAP_MSNMOBILE = 0x00040, | 114 MSN_CLIENT_CAP_MSNDIRECT = 0x000080, |
115 MSN_CLIENT_CAP_MSNDIRECT = 0x00080, | 115 MSN_CLIENT_CAP_WEBMSGR = 0x000200, |
116 MSN_CLIENT_CAP_WEBMSGR = 0x00100, | 116 MSN_CLIENT_CAP_TGW = 0x000800, |
117 MSN_CLIENT_CAP_DIRECTIM = 0x04000, | 117 MSN_CLIENT_CAP_SPACE = 0x001000, |
118 MSN_CLIENT_CAP_WINKS = 0x08000, | 118 MSN_CLIENT_CAP_MCE = 0x002000, |
119 MSN_CLIENT_CAP_SEARCH = 0x10000 | 119 MSN_CLIENT_CAP_DIRECTIM = 0x004000, |
120 MSN_CLIENT_CAP_WINKS = 0x008000, | |
121 MSN_CLIENT_CAP_SEARCH = 0x010000, | |
122 MSN_CLIENT_CAP_BOT = 0x020000, | |
123 MSN_CLIENT_CAP_VOICEIM = 0x040000, | |
124 MSN_CLIENT_CAP_SCHANNEL = 0x080000, | |
125 MSN_CLIENT_CAP_SIP_INVITE = 0x100000, | |
126 MSN_CLIENT_CAP_SDRIVE = 0x400000 | |
120 | 127 |
121 } MsnClientCaps; | 128 } MsnClientCaps; |
122 | 129 |
123 typedef enum | 130 typedef enum |
124 { | 131 { |
125 MSN_CLIENT_VER_5_0 = 0x00, | 132 MSN_CLIENT_VER_5_0 = 0x00, |
126 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */ | 133 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */ |
127 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */ | 134 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */ |
128 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */ | 135 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */ |
129 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */ | 136 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */ |
130 MSN_CLIENT_VER_7_5 = 0x50 /* MSNC5 */ | 137 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */ |
138 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */ | |
139 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */ | |
140 MSN_CLIENT_VER_8_5 = 0x80 /* MSNC8 */ | |
131 | 141 |
132 } MsnClientVerId; | 142 } MsnClientVerId; |
133 | 143 |
134 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0 | 144 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0 |
135 #define MSN_CLIENT_ID_RESERVED_1 0x00 | 145 #define MSN_CLIENT_ID_CAPABILITIES MSN_CLIENT_CAP_PACKET |
136 #define MSN_CLIENT_ID_RESERVED_2 0x00 | |
137 #define MSN_CLIENT_ID_CAPABILITIES MSN_CLIENT_CAP_BASE | |
138 | 146 |
139 #define MSN_CLIENT_ID \ | 147 #define MSN_CLIENT_ID \ |
140 ((MSN_CLIENT_ID_VERSION << 24) | \ | 148 ((MSN_CLIENT_ID_VERSION << 24) | \ |
141 (MSN_CLIENT_ID_RESERVED_1 << 16) | \ | |
142 (MSN_CLIENT_ID_RESERVED_2 << 8) | \ | |
143 (MSN_CLIENT_ID_CAPABILITIES)) | 149 (MSN_CLIENT_ID_CAPABILITIES)) |
144 | 150 |
145 void msn_act_id(PurpleConnection *gc, const char *entry); | 151 void msn_act_id(PurpleConnection *gc, const char *entry); |
146 void msn_send_privacy(PurpleConnection *gc); | 152 void msn_send_privacy(PurpleConnection *gc); |
147 | 153 |