Changes in protocols/msn/msn.h [80175a1:8b01217]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.h
r80175a1 r8b01217 2 2 * BitlBee -- An IRC to other IM-networks gateway * 3 3 * * 4 * Copyright 2002-20 10Wilmer van der Gaast and others *4 * Copyright 2002-2004 Wilmer van der Gaast and others * 5 5 \********************************************************************/ 6 6 … … 39 39 #endif 40 40 41 /* This should be MSN Messenger 7.0.0813 42 #define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T" 43 #define MSNP11_PROD_ID "PROD0101{0RM?UBW" 44 */ 45 46 /* Some other version. 47 #define MSNP11_PROD_KEY "O4BG@C7BWLYQX?5G" 48 #define MSNP11_PROD_ID "PROD01065C%ZFN6F" 49 */ 50 51 #define MSNP11_PROD_KEY "ILTXC!4IXB5FB*PX" 52 #define MSNP11_PROD_ID "PROD0119GSJUC$18" 53 #define MSNP_VER "MSNP15" 54 #define MSNP_BUILD "8.5.1288" 41 #define QRY_NAME "msmsgs@msnmsgr.com" 42 #define QRY_CODE "Q1P7W2E4J9R8U3S5" 55 43 56 44 #define MSN_SB_NEW -24062002 … … 73 61 #define PROFILE_URL "http://members.msn.com/" 74 62 75 typedef enum76 {77 MSN_GOT_PROFILE = 1,78 MSN_GOT_PROFILE_DN = 2,79 MSN_DONE_ADL = 4,80 } msn_flags_t;81 82 63 struct msn_data 83 64 { … … 86 67 int fd; 87 68 struct msn_handler_data *handler; 88 msn_flags_t flags;89 69 90 70 int trId; 91 char *tokens[4];92 char *lock_key;93 71 94 72 GSList *msgq, *grpq; … … 96 74 int sb_failures; 97 75 time_t first_sb_failure; 76 GSList *filetransfers; 98 77 99 78 const struct msn_away_state *away_state; 100 GSList *groups; 101 102 /* Mostly used for sending the ADL command; since MSNP13 the client 103 is responsible for downloading the contact list and then sending 104 it to the MSNP server. */ 105 GTree *domaintree; 106 int adl_todo; 79 int buddycount; 80 int groupcount; 81 char **grouplist; 107 82 }; 108 83 … … 165 140 int (*exec_command) ( gpointer data, char **cmd, int count ); 166 141 int (*exec_message) ( gpointer data, char *msg, int msglen, char **cmd, int count ); 167 };168 169 typedef enum170 {171 MSN_BUDDY_FL = 1, /* Warning: FL,AL,BL *must* be 1,2,4. */172 MSN_BUDDY_AL = 2,173 MSN_BUDDY_BL = 4,174 MSN_BUDDY_RL = 8,175 MSN_BUDDY_PL = 16,176 MSN_BUDDY_ADL_SYNCED = 256,177 } msn_buddy_flags_t;178 179 struct msn_buddy_data180 {181 char *cid;182 msn_buddy_flags_t flags;183 };184 185 struct msn_group186 {187 char *name;188 char *id;189 142 }; 190 143 … … 209 162 /* ns.c */ 210 163 gboolean msn_ns_connected( gpointer data, gint source, b_input_condition cond ); 211 void msn_auth_got_passport_token( struct im_connection *ic, const char *token, const char *error );212 void msn_auth_got_contact_list( struct im_connection *ic );213 int msn_ns_finish_login( struct im_connection *ic );214 164 215 165 /* msn_util.c */ 216 166 int msn_write( struct im_connection *ic, char *s, int len ); 217 167 int msn_logged_in( struct im_connection *ic ); 218 int msn_buddy_list_add( struct im_connection *ic, msn_buddy_flags_tlist, const char *who, const char *realname_, const char *group );219 int msn_buddy_list_remove( struct im_connection *ic, msn_buddy_flags_tlist, const char *who, const char *group );220 void msn_buddy_ask( bee_user_t *bu);168 int msn_buddy_list_add( struct im_connection *ic, const char *list, const char *who, const char *realname_, const char *group ); 169 int msn_buddy_list_remove( struct im_connection *ic, char *list, const char *who, const char *group ); 170 void msn_buddy_ask( struct im_connection *ic, char *handle, char *realname ); 221 171 char *msn_findheader( char *text, char *header, int len ); 222 172 char **msn_linesplit( char *line ); 223 173 int msn_handler( struct msn_handler_data *h ); 174 char *msn_http_encode( const char *input ); 224 175 void msn_msgq_purge( struct im_connection *ic, GSList **list ); 225 char *msn_p11_challenge( char *challenge ); 226 gint msn_domaintree_cmp( gconstpointer a_, gconstpointer b_ ); 227 struct msn_group *msn_group_by_name( struct im_connection *ic, const char *name ); 228 struct msn_group *msn_group_by_id( struct im_connection *ic, const char *id ); 229 int msn_ns_set_display_name( struct im_connection *ic, const char *value ); 176 gboolean msn_set_display_name( struct im_connection *ic, const char *rawname ); 230 177 231 178 /* tables.c */ … … 249 196 void msn_sb_stop_keepalives( struct msn_switchboard *sb ); 250 197 198 /* invitation.c */ 199 void msn_ftp_transfer_request( struct im_connection *ic, file_transfer_t *ft, char *who ); 200 251 201 #endif //_MSN_H
Note: See TracChangeset
for help on using the changeset viewer.