Changes in protocols/nogaim.h [500a1b6:e7f46c5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
r500a1b6 re7f46c5 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 */ … … 161 162 162 163 struct prpl { 164 int protocol; 163 165 int options; 164 c onst char *name;166 char *(* name)(); 165 167 166 168 /* for ICQ and Yahoo, who have off/on per-conversation options */ … … 222 224 }; 223 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]; 241 224 242 #define UC_UNAVAILABLE 1 225 243 … … 231 249 232 250 G_MODULE_EXPORT GSList *get_connections(); 233 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 234 G_MODULE_EXPORT void register_protocol(struct prpl *); 251 extern struct prpl *proto_prpl[16]; 235 252 236 253 /* nogaim.c */ … … 283 300 G_MODULE_EXPORT void serv_got_update( struct gaim_connection *gc, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps ); 284 301 G_MODULE_EXPORT void serv_got_im( struct gaim_connection *gc, char *handle, char *msg, guint32 flags, time_t mtime, gint len ); 285 G_MODULE_EXPORT void serv_got_typing( struct gaim_connection *gc, char *handle, int timeout );302 G_MODULE_EXPORT void serv_got_typing( struct gaim_connection *gc, char *handle, int timeout, int type ); 286 303 G_MODULE_EXPORT void serv_got_chat_invite( struct gaim_connection *gc, char *handle, char *who, char *msg, GList *data ); 287 304 G_MODULE_EXPORT struct conversation *serv_got_joined_chat( struct gaim_connection *gc, int id, char *handle ); … … 302 319 G_MODULE_EXPORT void info_string_append(GString *str, char *newline, char *name, char *value); 303 320 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 340 304 341 /* prefs.c */ 305 342 G_MODULE_EXPORT void build_block_list();
Note: See TracChangeset
for help on using the changeset viewer.