Mercurial > pidgin
annotate src/server.h @ 6075:f7ddc1f6227e
[gaim-migrate @ 6534]
This should prevent warnings on some compilers. This change will either
make all warnings go away and have MSN continue to run as normal, or cause
MSN to crash on almost every message. I'm not sure yet. I'll wait for the
bug reports.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 10 Jul 2003 06:55:23 +0000 |
parents | d8cd876e613e |
children | 42fdf16f1dad |
rev | line source |
---|---|
5872 | 1 /** |
2 * @file server.h Server API | |
3 * @ingroup core | |
4 * | |
5 * gaim | |
6 * | |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
8 * | |
9 * This program is free software; you can redistribute it and/or modify | |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 */ | |
23 #ifndef _GAIM_SERVER_H_ | |
24 #define _GAIM_SERVER_H_ | |
25 | |
26 #define WFLAG_SEND 0x01 | |
27 #define WFLAG_RECV 0x02 | |
28 #define WFLAG_AUTO 0x04 | |
29 #define WFLAG_WHISPER 0x08 | |
30 #define WFLAG_FILERECV 0x10 | |
31 #define WFLAG_SYSTEM 0x20 | |
32 #define WFLAG_NICK 0x40 | |
33 #define WFLAG_NOLOG 0x80 | |
34 #define WFLAG_COLORIZE 0x100 | |
35 | |
36 #define IM_FLAG_AWAY 0x01 | |
37 #define IM_FLAG_CHECKBOX 0x02 | |
38 #define IM_FLAG_GAIMUSER 0x04 | |
39 | |
40 /* | |
41 * Really user states are controlled by the PRPLs now. We just | |
42 * use this for event_away | |
43 */ | |
44 #define UC_UNAVAILABLE 1 | |
45 | |
46 #include "account.h" | |
47 #include "conversation.h" | |
48 | |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
49 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
50 extern "C" { |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
51 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
52 |
5872 | 53 void serv_login(GaimAccount *); |
54 void serv_close(GaimConnection *); | |
55 void serv_touch_idle(GaimConnection *); | |
6059 | 56 int serv_send_im(GaimConnection *, const char *, const char *, int, int); |
57 void serv_get_info(GaimConnection *, const char *); | |
58 void serv_get_dir(GaimConnection *, const char *); | |
5872 | 59 void serv_set_idle(GaimConnection *, int); |
5954 | 60 void serv_set_info(GaimConnection *, const char *); |
6059 | 61 void serv_set_away(GaimConnection *, const char *, const char *); |
62 void serv_set_away_all(const char *); | |
63 int serv_send_typing(GaimConnection *, const char *, int); | |
5872 | 64 void serv_change_passwd(GaimConnection *, const char *, const char *); |
65 void serv_add_buddy(GaimConnection *, const char *); | |
66 void serv_add_buddies(GaimConnection *, GList *); | |
6059 | 67 void serv_remove_buddy(GaimConnection *, const char *, const char *); |
68 void serv_remove_buddies(GaimConnection *, GList *, const char *); | |
5872 | 69 void serv_add_permit(GaimConnection *, const char *); |
70 void serv_add_deny(GaimConnection *, const char *); | |
71 void serv_rem_permit(GaimConnection *, const char *); | |
72 void serv_rem_deny(GaimConnection *, const char *); | |
73 void serv_set_permit_deny(GaimConnection *); | |
6059 | 74 void serv_warn(GaimConnection *, const char *, int); |
5872 | 75 void serv_set_dir(GaimConnection *, const char *, const char *, |
76 const char *, const char *, const char *, | |
77 const char *, const char *, int); | |
78 void serv_dir_search(GaimConnection *, const char *, const char *, | |
79 const char *, const char *, const char *, const char *, | |
80 const char *, const char *); | |
81 void serv_join_chat(GaimConnection *, GHashTable *); | |
82 void serv_chat_invite(GaimConnection *, int, const char *, const char *); | |
83 void serv_chat_leave(GaimConnection *, int); | |
6059 | 84 void serv_chat_whisper(GaimConnection *, int, const char *, const char *); |
85 int serv_chat_send(GaimConnection *, int, const char *); | |
86 void serv_got_popup(const char *, const char *, int, int); | |
5872 | 87 void serv_get_away(GaimConnection *, const char *); |
88 void serv_alias_buddy(struct buddy *); | |
89 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias); | |
90 void serv_move_buddy(struct buddy *, struct group *, struct group *); | |
91 void serv_rename_group(GaimConnection *, struct group *, const char *); | |
92 void serv_got_eviled(GaimConnection *gc, const char *name, int lev); | |
93 void serv_got_typing(GaimConnection *gc, const char *name, int timeout, | |
94 GaimTypingState state); | |
95 void serv_set_buddyicon(GaimConnection *gc, const char *filename); | |
96 void serv_got_typing_stopped(GaimConnection *gc, const char *name); | |
97 void serv_got_im(GaimConnection *gc, const char *who, const char *msg, | |
98 guint32 flags, time_t mtime, gint len); | |
99 void serv_got_update(GaimConnection *gc, const char *name, int loggedin, | |
100 int evil, time_t signon, time_t idle, int type); | |
101 void serv_finish_login(GaimConnection *gc); | |
102 void serv_got_chat_invite(GaimConnection *gc, const char *name, | |
103 const char *who, const char *message, | |
104 GHashTable *data); | |
105 GaimConversation *serv_got_joined_chat(GaimConnection *gc, | |
106 int id, const char *name); | |
107 void serv_got_chat_left(GaimConnection *g, int id); | |
6059 | 108 void serv_got_chat_in(GaimConnection *g, int id, const char *who, |
109 int whisper, const char *message, time_t mtime); | |
5872 | 110 |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
111 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
112 } |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
113 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
114 |
5872 | 115 #endif /* _GAIM_SERVER_H_ */ |