comparison src/server.h @ 6622:a4622f1fb5a1

[gaim-migrate @ 7146] (10:10:23) Robot101: kills off OPT_CONN_* in favour of an enum, and deprecates all the IM_FLAGS_* except IM_FLAG_AWAY which is made into GAIM_IM_AUTO_RESP in a GaimImFlags enum. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 25 Aug 2003 14:12:28 +0000
parents 42fdf16f1dad
children 0c5637b5462e
comparison
equal deleted inserted replaced
6621:42fdf16f1dad 6622:a4622f1fb5a1
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */ 22 */
23 #ifndef _GAIM_SERVER_H_ 23 #ifndef _GAIM_SERVER_H_
24 #define _GAIM_SERVER_H_ 24 #define _GAIM_SERVER_H_
25 25
26 #define IM_FLAG_AWAY 0x01
27 #define IM_FLAG_CHECKBOX 0x02
28 #define IM_FLAG_GAIMUSER 0x04
29
30 /* 26 /*
31 * Really user states are controlled by the PRPLs now. We just 27 * Really user states are controlled by the PRPLs now. We just
32 * use this for event_away 28 * use this for event_away
33 */ 29 */
34 #define UC_UNAVAILABLE 1 30 #define UC_UNAVAILABLE 1
41 #endif 37 #endif
42 38
43 void serv_login(GaimAccount *); 39 void serv_login(GaimAccount *);
44 void serv_close(GaimConnection *); 40 void serv_close(GaimConnection *);
45 void serv_touch_idle(GaimConnection *); 41 void serv_touch_idle(GaimConnection *);
46 int serv_send_im(GaimConnection *, const char *, const char *, int, int); 42 int serv_send_im(GaimConnection *, const char *, const char *, int, GaimImFlags);
47 void serv_get_info(GaimConnection *, const char *); 43 void serv_get_info(GaimConnection *, const char *);
48 void serv_get_dir(GaimConnection *, const char *); 44 void serv_get_dir(GaimConnection *, const char *);
49 void serv_set_idle(GaimConnection *, int); 45 void serv_set_idle(GaimConnection *, int);
50 void serv_set_info(GaimConnection *, const char *); 46 void serv_set_info(GaimConnection *, const char *);
51 void serv_set_away(GaimConnection *, const char *, const char *); 47 void serv_set_away(GaimConnection *, const char *, const char *);
83 void serv_got_typing(GaimConnection *gc, const char *name, int timeout, 79 void serv_got_typing(GaimConnection *gc, const char *name, int timeout,
84 GaimTypingState state); 80 GaimTypingState state);
85 void serv_set_buddyicon(GaimConnection *gc, const char *filename); 81 void serv_set_buddyicon(GaimConnection *gc, const char *filename);
86 void serv_got_typing_stopped(GaimConnection *gc, const char *name); 82 void serv_got_typing_stopped(GaimConnection *gc, const char *name);
87 void serv_got_im(GaimConnection *gc, const char *who, const char *msg, 83 void serv_got_im(GaimConnection *gc, const char *who, const char *msg,
88 guint32 flags, time_t mtime, gint len); 84 GaimImFlags imflags, time_t mtime, gint len);
89 void serv_got_update(GaimConnection *gc, const char *name, int loggedin, 85 void serv_got_update(GaimConnection *gc, const char *name, int loggedin,
90 int evil, time_t signon, time_t idle, int type); 86 int evil, time_t signon, time_t idle, int type);
91 void serv_finish_login(GaimConnection *gc); 87 void serv_finish_login(GaimConnection *gc);
92 void serv_got_chat_invite(GaimConnection *gc, const char *name, 88 void serv_got_chat_invite(GaimConnection *gc, const char *name,
93 const char *who, const char *message, 89 const char *who, const char *message,