Changeset bae0617 for protocols/msn/msn.h
- Timestamp:
- 2010-09-03T21:24:58Z (14 years ago)
- Branches:
- master
- Children:
- 4aa8a04
- Parents:
- 64768d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.h
r64768d4 rbae0617 44 44 */ 45 45 46 #define MSN_NS_HOST "messenger.hotmail.com" 47 #define MSN_NS_PORT 1863 48 46 49 /* Some other version. 47 50 #define MSNP11_PROD_KEY "O4BG@C7BWLYQX?5G" … … 80 83 } msn_flags_t; 81 84 85 struct msn_handler_data 86 { 87 int fd, inpa; 88 int rxlen; 89 char *rxq; 90 91 int msglen; 92 char *cmd_text; 93 94 /* Either ic or sb */ 95 gpointer data; 96 97 int (*exec_command) ( struct msn_handler_data *handler, char **cmd, int count ); 98 int (*exec_message) ( struct msn_handler_data *handler, char *msg, int msglen, char **cmd, int count ); 99 }; 100 82 101 struct msn_data 83 102 { 84 103 struct im_connection *ic; 85 104 86 int fd; 87 struct msn_handler_data *handler; 105 struct msn_handler_data ns[1], auth[1]; 88 106 msn_flags_t flags; 89 107 … … 111 129 struct im_connection *ic; 112 130 131 /* The following two are also in the handler. TODO: Clean up. */ 113 132 int fd; 114 133 gint inp; … … 150 169 char *who; 151 170 char *group; 152 };153 154 struct msn_handler_data155 {156 int fd;157 int rxlen;158 char *rxq;159 160 int msglen;161 char *cmd_text;162 163 gpointer data;164 165 int (*exec_command) ( gpointer data, char **cmd, int count );166 int (*exec_message) ( gpointer data, char *msg, int msglen, char **cmd, int count );167 171 }; 168 172 … … 209 213 /* ns.c */ 210 214 int msn_ns_write( struct im_connection *ic, int fd, const char *fmt, ... ); 211 gboolean msn_ns_connected( gpointer data, gint source, b_input_condition cond ); 215 gboolean msn_ns_connect( struct im_connection *ic, struct msn_handler_data *handler, const char *host, int port ); 216 void msn_ns_close( struct msn_handler_data *handler ); 212 217 void msn_auth_got_passport_token( struct im_connection *ic, const char *token, const char *error ); 213 218 void msn_auth_got_contact_list( struct im_connection *ic );
Note: See TracChangeset
for help on using the changeset viewer.