Changes in protocols/nogaim.h [7b23afd:9cb9868]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
r7b23afd r9cb9868 72 72 /* we need to do either oscar or TOC */ 73 73 /* we make this as an int in case if we want to add more protocols later */ 74 int protocol; 74 75 struct prpl *prpl; 75 76 guint32 flags; … … 151 152 char user_info[2048]; 152 153 int options; 153 struct prpl *prpl;154 int protocol; 154 155 /* prpls can use this to save information about the user, 155 156 * like which server to connect to, etc */ … … 160 161 }; 161 162 162 struct ft163 {164 const char *filename;165 166 /* Total number of bytes in file */167 size_t total_bytes;168 169 /* Current number of bytes received */170 size_t cur_bytes;171 };172 173 struct ft_request174 {175 const char *filename;176 struct gaim_connection *gc;177 };178 179 typedef void (*ft_recv_handler) (struct ft *, void *data, size_t len);180 181 163 struct prpl { 164 int protocol; 182 165 int options; 183 c onst char *name;166 char *(* name)(); 184 167 185 168 /* for ICQ and Yahoo, who have off/on per-conversation options */ … … 234 217 void (* group_buddy) (struct gaim_connection *, char *who, char *old_group, char *new_group); 235 218 236 /* file transfers */237 struct ft_send_req *(* req_send_file) (struct gaim_connection *, const char *file);238 void (* send_file_part) (struct gaim_connection *, struct ft*, void *data, size_t length);239 void (* accept_recv_file) (struct gaim_connection *, struct ft*, ft_recv_handler);240 241 219 void (* buddy_free) (struct buddy *); 242 220 243 221 char *(* get_status_string) (struct gaim_connection *gc, int stat); 244 }; 222 223 int (* cmp_buddynames) (const char *who1, const char *who2); 224 }; 225 226 #define PROTO_TOC 0 227 #define PROTO_OSCAR 1 228 #define PROTO_YAHOO 2 229 #define PROTO_ICQ 3 230 #define PROTO_MSN 4 231 #define PROTO_IRC 5 232 #define PROTO_FTP 6 233 #define PROTO_VGATE 7 234 #define PROTO_JABBER 8 235 #define PROTO_NAPSTER 9 236 #define PROTO_ZEPHYR 10 237 #define PROTO_GADUGADU 11 238 #define PROTO_MAX 16 239 240 extern char proto_name[PROTO_MAX][8]; 245 241 246 242 #define UC_UNAVAILABLE 1 … … 253 249 254 250 G_MODULE_EXPORT GSList *get_connections(); 255 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 256 G_MODULE_EXPORT void register_protocol(struct prpl *); 251 extern struct prpl *proto_prpl[16]; 257 252 258 253 /* nogaim.c */ … … 266 261 int proto_away( struct gaim_connection *gc, char *away ); 267 262 char *set_eval_away_devoice( irc_t *irc, set_t *set, char *value ); 268 int handle_cmp( char *a, char *b, struct prpl *protocol );269 263 270 264 gboolean auto_reconnect( gpointer data ); … … 325 319 G_MODULE_EXPORT void info_string_append(GString *str, char *newline, char *name, char *value); 326 320 327 /* file transfers */ 328 G_MODULE_EXPORT void ft_progress( struct ft *, int); 329 G_MODULE_EXPORT void ft_incoming( struct ft_request * ); 330 G_MODULE_EXPORT void ft_accepted( struct ft_request *, struct ft *); 331 G_MODULE_EXPORT void ft_denied( struct ft_request *, const char *reason); 321 #ifdef WITH_MSN 322 /* msn.c */ 323 G_MODULE_EXPORT void msn_init( struct prpl *ret ); 324 #endif 325 326 #ifdef WITH_OSCAR 327 /* oscar.c */ 328 G_MODULE_EXPORT void oscar_init( struct prpl *ret ); 329 #endif 330 331 #ifdef WITH_JABBER 332 /* jabber.c */ 333 G_MODULE_EXPORT void jabber_init( struct prpl *ret ); 334 #endif 335 336 #ifdef WITH_YAHOO 337 /* yahoo.c */ 338 G_MODULE_EXPORT void byahoo_init( struct prpl *ret ); 339 #endif 332 340 333 341 /* prefs.c */
Note: See TracChangeset
for help on using the changeset viewer.