Mercurial > pidgin
comparison libpurple/protocols/msn/nexus.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 | 6a0304f317cf |
children | 6444484ada7d |
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_NEXUS_H_ | 24 #ifndef MSN_NEXUS_H |
25 #define _MSN_NEXUS_H_ | 25 #define MSN_NEXUS_H |
26 | |
27 typedef struct _MsnNexus MsnNexus; | |
28 typedef struct _MsnTicketToken MsnTicketToken; | |
29 typedef struct _MsnUsrKey MsnUsrKey; | |
26 | 30 |
27 /* Index into ticket_tokens in nexus.c Keep updated! */ | 31 /* Index into ticket_tokens in nexus.c Keep updated! */ |
28 typedef enum | 32 typedef enum |
29 { | 33 { |
30 MSN_AUTH_MESSENGER = 0, | 34 MSN_AUTH_MESSENGER = 0, |
181 "<Body>"\ | 185 "<Body>"\ |
182 "%s" /* wst:RequestSecurityToken */ \ | 186 "%s" /* wst:RequestSecurityToken */ \ |
183 "</Body>"\ | 187 "</Body>"\ |
184 "</Envelope>" | 188 "</Envelope>" |
185 | 189 |
186 typedef struct _MsnUsrKey MsnUsrKey; | |
187 struct _MsnUsrKey | 190 struct _MsnUsrKey |
188 { | 191 { |
189 int size; /* 28. Does not count data */ | 192 int size; /* 28. Does not count data */ |
190 int crypt_mode; /* CRYPT_MODE_CBC (1) */ | 193 int crypt_mode; /* CRYPT_MODE_CBC (1) */ |
191 int cipher_type; /* TripleDES (0x6603) */ | 194 int cipher_type; /* TripleDES (0x6603) */ |
197 char iv[8]; | 200 char iv[8]; |
198 char hash[20]; | 201 char hash[20]; |
199 char cipher[72]; | 202 char cipher[72]; |
200 }; | 203 }; |
201 | 204 |
202 typedef struct _MsnTicketToken MsnTicketToken; | |
203 struct _MsnTicketToken { | 205 struct _MsnTicketToken { |
204 GHashTable *token; | 206 GHashTable *token; |
205 char *secret; | 207 char *secret; |
206 time_t expiry; | 208 time_t expiry; |
207 GSList *updates; | 209 GSList *updates; |
208 }; | 210 }; |
209 | 211 |
210 typedef struct _MsnNexus MsnNexus; | |
211 | |
212 struct _MsnNexus | 212 struct _MsnNexus |
213 { | 213 { |
214 MsnSession *session; | 214 MsnSession *session; |
215 | 215 |
216 /* From server via USR command */ | 216 /* From server via USR command */ |
228 MsnNexus *msn_nexus_new(MsnSession *session); | 228 MsnNexus *msn_nexus_new(MsnSession *session); |
229 void msn_nexus_destroy(MsnNexus *nexus); | 229 void msn_nexus_destroy(MsnNexus *nexus); |
230 GHashTable *msn_nexus_get_token(MsnNexus *nexus, MsnAuthDomains id); | 230 GHashTable *msn_nexus_get_token(MsnNexus *nexus, MsnAuthDomains id); |
231 const char *msn_nexus_get_token_str(MsnNexus *nexus, MsnAuthDomains id); | 231 const char *msn_nexus_get_token_str(MsnNexus *nexus, MsnAuthDomains id); |
232 void msn_nexus_update_token(MsnNexus *nexus, int id, GSourceFunc cb, gpointer data); | 232 void msn_nexus_update_token(MsnNexus *nexus, int id, GSourceFunc cb, gpointer data); |
233 #endif /* _MSN_NEXUS_H_ */ | 233 |
234 | 234 #endif /* MSN_NEXUS_H */ |