Mercurial > pidgin
comparison libpurple/protocols/msn/msn.h @ 28983:462cb893521b
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 05 Feb 2010 22:49:11 +0000 |
parents | a401d3500a75 |
children | ec89b1d8571a 6376fc7a092e |
comparison
equal
deleted
inserted
replaced
28982:791606778223 | 28983:462cb893521b |
---|---|
19 * | 19 * |
20 * You should have received a copy of the GNU General Public License | 20 * You should have received a copy of the GNU General Public License |
21 * along with this program; if not, write to the Free Software | 21 * along with this program; if not, write to the Free Software |
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
23 */ | 23 */ |
24 #ifndef _MSN_H_ | 24 #ifndef MSN_H |
25 #define _MSN_H_ | 25 #define MSN_H |
26 | |
27 typedef enum | |
28 { | |
29 MSN_LIST_FL_OP = 0x01, | |
30 MSN_LIST_AL_OP = 0x02, | |
31 MSN_LIST_BL_OP = 0x04, | |
32 MSN_LIST_RL_OP = 0x08, | |
33 MSN_LIST_PL_OP = 0x10 | |
34 } MsnListOp; | |
35 #define MSN_LIST_OP_MASK 0x07 | |
36 | |
37 typedef enum | |
38 { | |
39 MSN_CLIENT_CAP_WIN_MOBILE = 0x0000001, | |
40 MSN_CLIENT_CAP_INK_GIF = 0x0000004, | |
41 MSN_CLIENT_CAP_INK_ISF = 0x0000008, | |
42 MSN_CLIENT_CAP_VIDEO_CHAT = 0x0000010, | |
43 MSN_CLIENT_CAP_PACKET = 0x0000020, | |
44 MSN_CLIENT_CAP_MSNMOBILE = 0x0000040, | |
45 MSN_CLIENT_CAP_MSNDIRECT = 0x0000080, | |
46 MSN_CLIENT_CAP_WEBMSGR = 0x0000200, | |
47 MSN_CLIENT_CAP_TGW = 0x0000800, | |
48 MSN_CLIENT_CAP_SPACE = 0x0001000, | |
49 MSN_CLIENT_CAP_MCE = 0x0002000, | |
50 MSN_CLIENT_CAP_DIRECTIM = 0x0004000, | |
51 MSN_CLIENT_CAP_WINKS = 0x0008000, | |
52 MSN_CLIENT_CAP_SEARCH = 0x0010000, | |
53 MSN_CLIENT_CAP_BOT = 0x0020000, | |
54 MSN_CLIENT_CAP_VOICEIM = 0x0040000, | |
55 MSN_CLIENT_CAP_SCHANNEL = 0x0080000, | |
56 MSN_CLIENT_CAP_SIP_INVITE = 0x0100000, | |
57 MSN_CLIENT_CAP_SDRIVE = 0x0400000, | |
58 MSN_CLIENT_CAP_ONECARE = 0x1000000, | |
59 MSN_CLIENT_CAP_P2P_TURN = 0x2000000, | |
60 MSN_CLIENT_CAP_P2P_BOOTSTRAP_VIA_UUN = 0x4000000, | |
61 } MsnClientCaps; | |
62 | |
63 typedef enum | |
64 { | |
65 MSN_CLIENT_EXT_CAP_RTC_VIDEO = 0x10, | |
66 MSN_CLIENT_EXT_CAP_P2PV2 = 0x20 | |
67 } MsnClientExtCaps; | |
68 | |
69 typedef enum | |
70 { | |
71 MSN_CLIENT_VER_5_0 = 0x00, | |
72 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */ | |
73 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */ | |
74 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */ | |
75 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */ | |
76 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */ | |
77 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */ | |
78 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */ | |
79 MSN_CLIENT_VER_8_5 = 0x80, /* MSNC8 */ | |
80 MSN_CLIENT_VER_9_0 = 0x90, /* MSNC9 */ | |
81 MSN_CLIENT_VER_14_0 = 0xA0 /* MSNC10 */ | |
82 } MsnClientVerId; | |
26 | 83 |
27 #include "internal.h" | 84 #include "internal.h" |
28 | 85 |
29 #include "account.h" | 86 #include "account.h" |
30 #include "accountopt.h" | 87 #include "accountopt.h" |
75 "Chat-Logging: Y\r\n" | 132 "Chat-Logging: Y\r\n" |
76 | 133 |
77 /* Index into attention_types */ | 134 /* Index into attention_types */ |
78 #define MSN_NUDGE 0 | 135 #define MSN_NUDGE 0 |
79 | 136 |
80 typedef enum | |
81 { | |
82 MSN_LIST_FL_OP = 0x01, | |
83 MSN_LIST_AL_OP = 0x02, | |
84 MSN_LIST_BL_OP = 0x04, | |
85 MSN_LIST_RL_OP = 0x08, | |
86 MSN_LIST_PL_OP = 0x10 | |
87 | |
88 } MsnListOp; | |
89 #define MSN_LIST_OP_MASK 0x07 | |
90 | |
91 typedef enum | |
92 { | |
93 MSN_CLIENT_CAP_WIN_MOBILE = 0x0000001, | |
94 MSN_CLIENT_CAP_INK_GIF = 0x0000004, | |
95 MSN_CLIENT_CAP_INK_ISF = 0x0000008, | |
96 MSN_CLIENT_CAP_VIDEO_CHAT = 0x0000010, | |
97 MSN_CLIENT_CAP_PACKET = 0x0000020, | |
98 MSN_CLIENT_CAP_MSNMOBILE = 0x0000040, | |
99 MSN_CLIENT_CAP_MSNDIRECT = 0x0000080, | |
100 MSN_CLIENT_CAP_WEBMSGR = 0x0000200, | |
101 MSN_CLIENT_CAP_TGW = 0x0000800, | |
102 MSN_CLIENT_CAP_SPACE = 0x0001000, | |
103 MSN_CLIENT_CAP_MCE = 0x0002000, | |
104 MSN_CLIENT_CAP_DIRECTIM = 0x0004000, | |
105 MSN_CLIENT_CAP_WINKS = 0x0008000, | |
106 MSN_CLIENT_CAP_SEARCH = 0x0010000, | |
107 MSN_CLIENT_CAP_BOT = 0x0020000, | |
108 MSN_CLIENT_CAP_VOICEIM = 0x0040000, | |
109 MSN_CLIENT_CAP_SCHANNEL = 0x0080000, | |
110 MSN_CLIENT_CAP_SIP_INVITE = 0x0100000, | |
111 MSN_CLIENT_CAP_SDRIVE = 0x0400000, | |
112 MSN_CLIENT_CAP_ONECARE = 0x1000000, | |
113 MSN_CLIENT_CAP_P2P_TURN = 0x2000000, | |
114 MSN_CLIENT_CAP_P2P_BOOTSTRAP_VIA_UUN = 0x4000000, | |
115 | |
116 } MsnClientCaps; | |
117 | |
118 typedef enum | |
119 { | |
120 MSN_CLIENT_EXT_CAP_RTC_VIDEO = 0x10, | |
121 MSN_CLIENT_EXT_CAP_P2PV2 = 0x20 | |
122 } MsnClientExtCaps; | |
123 | |
124 typedef enum | |
125 { | |
126 MSN_CLIENT_VER_5_0 = 0x00, | |
127 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */ | |
128 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */ | |
129 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */ | |
130 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */ | |
131 MSN_CLIENT_VER_7_5 = 0x50, /* MSNC5 */ | |
132 MSN_CLIENT_VER_8_0 = 0x60, /* MSNC6 */ | |
133 MSN_CLIENT_VER_8_1 = 0x70, /* MSNC7 */ | |
134 MSN_CLIENT_VER_8_5 = 0x80, /* MSNC8 */ | |
135 MSN_CLIENT_VER_9_0 = 0x90, /* MSNC9 */ | |
136 MSN_CLIENT_VER_14_0 = 0xA0 /* MSNC10 */ | |
137 | |
138 } MsnClientVerId; | |
139 | |
140 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0 | 137 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0 |
141 #define MSN_CLIENT_ID_CAPABILITIES (MSN_CLIENT_CAP_PACKET|MSN_CLIENT_CAP_INK_GIF|MSN_CLIENT_CAP_VOICEIM) | 138 #define MSN_CLIENT_ID_CAPABILITIES (MSN_CLIENT_CAP_PACKET|MSN_CLIENT_CAP_INK_GIF|MSN_CLIENT_CAP_VOICEIM) |
142 | 139 |
143 #define MSN_CLIENT_ID \ | 140 #define MSN_CLIENT_ID \ |
144 ((MSN_CLIENT_ID_VERSION << 24) | \ | 141 ((MSN_CLIENT_ID_VERSION << 24) | \ |
149 gboolean msn_email_is_valid(const char *passport); | 146 gboolean msn_email_is_valid(const char *passport); |
150 void msn_act_id(PurpleConnection *gc, const char *entry); | 147 void msn_act_id(PurpleConnection *gc, const char *entry); |
151 void msn_send_privacy(PurpleConnection *gc); | 148 void msn_send_privacy(PurpleConnection *gc); |
152 void msn_send_im_message(MsnSession *session, MsnMessage *msg); | 149 void msn_send_im_message(MsnSession *session, MsnMessage *msg); |
153 | 150 |
154 #endif /* _MSN_H_ */ | 151 #endif /* MSN_H */ |