Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.h

    r80175a1 r8b01217  
    22  * BitlBee -- An IRC to other IM-networks gateway                     *
    33  *                                                                    *
    4   * Copyright 2002-2010 Wilmer van der Gaast and others                *
     4  * Copyright 2002-2004 Wilmer van der Gaast and others                *
    55  \********************************************************************/
    66
     
    3939#endif
    4040
    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"
    5543
    5644#define MSN_SB_NEW         -24062002
     
    7361#define PROFILE_URL "http://members.msn.com/"
    7462
    75 typedef enum
    76 {
    77         MSN_GOT_PROFILE = 1,
    78         MSN_GOT_PROFILE_DN = 2,
    79         MSN_DONE_ADL = 4,
    80 } msn_flags_t;
    81 
    8263struct msn_data
    8364{
     
    8667        int fd;
    8768        struct msn_handler_data *handler;
    88         msn_flags_t flags;
    8969       
    9070        int trId;
    91         char *tokens[4];
    92         char *lock_key;
    9371       
    9472        GSList *msgq, *grpq;
     
    9674        int sb_failures;
    9775        time_t first_sb_failure;
     76        GSList *filetransfers;
    9877       
    9978        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;
    10782};
    10883
     
    165140        int (*exec_command) ( gpointer data, char **cmd, int count );
    166141        int (*exec_message) ( gpointer data, char *msg, int msglen, char **cmd, int count );
    167 };
    168 
    169 typedef enum
    170 {
    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_data
    180 {
    181         char *cid;
    182         msn_buddy_flags_t flags;
    183 };
    184 
    185 struct msn_group
    186 {
    187         char *name;
    188         char *id;
    189142};
    190143
     
    209162/* ns.c */
    210163gboolean 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 );
    214164
    215165/* msn_util.c */
    216166int msn_write( struct im_connection *ic, char *s, int len );
    217167int msn_logged_in( struct im_connection *ic );
    218 int msn_buddy_list_add( struct im_connection *ic, msn_buddy_flags_t list, const char *who, const char *realname_, const char *group );
    219 int msn_buddy_list_remove( struct im_connection *ic, msn_buddy_flags_t list, const char *who, const char *group );
    220 void msn_buddy_ask( bee_user_t *bu );
     168int msn_buddy_list_add( struct im_connection *ic, const char *list, const char *who, const char *realname_, const char *group );
     169int msn_buddy_list_remove( struct im_connection *ic, char *list, const char *who, const char *group );
     170void msn_buddy_ask( struct im_connection *ic, char *handle, char *realname );
    221171char *msn_findheader( char *text, char *header, int len );
    222172char **msn_linesplit( char *line );
    223173int msn_handler( struct msn_handler_data *h );
     174char *msn_http_encode( const char *input );
    224175void 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 );
     176gboolean msn_set_display_name( struct im_connection *ic, const char *rawname );
    230177
    231178/* tables.c */
     
    249196void msn_sb_stop_keepalives( struct msn_switchboard *sb );
    250197
     198/* invitation.c */
     199void msn_ftp_transfer_request( struct im_connection *ic, file_transfer_t *ft, char *who );
     200
    251201#endif //_MSN_H
Note: See TracChangeset for help on using the changeset viewer.