Changes in protocols/nogaim.h [e7f46c5:500a1b6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
re7f46c5 r500a1b6 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;75 74 struct prpl *prpl; 76 75 guint32 flags; … … 152 151 char user_info[2048]; 153 152 int options; 154 int protocol;153 struct prpl *prpl; 155 154 /* prpls can use this to save information about the user, 156 155 * like which server to connect to, etc */ … … 162 161 163 162 struct prpl { 164 int protocol;165 163 int options; 166 c har *(* name)();164 const char *name; 167 165 168 166 /* for ICQ and Yahoo, who have off/on per-conversation options */ … … 224 222 }; 225 223 226 #define PROTO_TOC 0227 #define PROTO_OSCAR 1228 #define PROTO_YAHOO 2229 #define PROTO_ICQ 3230 #define PROTO_MSN 4231 #define PROTO_IRC 5232 #define PROTO_FTP 6233 #define PROTO_VGATE 7234 #define PROTO_JABBER 8235 #define PROTO_NAPSTER 9236 #define PROTO_ZEPHYR 10237 #define PROTO_GADUGADU 11238 #define PROTO_MAX 16239 240 extern char proto_name[PROTO_MAX][8];241 242 224 #define UC_UNAVAILABLE 1 243 225 … … 249 231 250 232 G_MODULE_EXPORT GSList *get_connections(); 251 extern struct prpl *proto_prpl[16]; 233 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 234 G_MODULE_EXPORT void register_protocol(struct prpl *); 252 235 253 236 /* nogaim.c */ … … 300 283 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 ); 301 284 G_MODULE_EXPORT void serv_got_im( struct gaim_connection *gc, char *handle, char *msg, guint32 flags, time_t mtime, gint len ); 302 G_MODULE_EXPORT void serv_got_typing( struct gaim_connection *gc, char *handle, int timeout , int type);285 G_MODULE_EXPORT void serv_got_typing( struct gaim_connection *gc, char *handle, int timeout ); 303 286 G_MODULE_EXPORT void serv_got_chat_invite( struct gaim_connection *gc, char *handle, char *who, char *msg, GList *data ); 304 287 G_MODULE_EXPORT struct conversation *serv_got_joined_chat( struct gaim_connection *gc, int id, char *handle ); … … 319 302 G_MODULE_EXPORT void info_string_append(GString *str, char *newline, char *name, char *value); 320 303 321 #ifdef WITH_MSN322 /* msn.c */323 G_MODULE_EXPORT void msn_init( struct prpl *ret );324 #endif325 326 #ifdef WITH_OSCAR327 /* oscar.c */328 G_MODULE_EXPORT void oscar_init( struct prpl *ret );329 #endif330 331 #ifdef WITH_JABBER332 /* jabber.c */333 G_MODULE_EXPORT void jabber_init( struct prpl *ret );334 #endif335 336 #ifdef WITH_YAHOO337 /* yahoo.c */338 G_MODULE_EXPORT void byahoo_init( struct prpl *ret );339 #endif340 341 304 /* prefs.c */ 342 305 G_MODULE_EXPORT void build_block_list();
Note: See TracChangeset
for help on using the changeset viewer.