src/server.h

branch
gaim
changeset 20470
77693555855f
parent 13071
b98e72d4089a
parent 20469
b2836a24d81e
child 20471
1966704b3e42
equal deleted inserted replaced
13071:b98e72d4089a 20470:77693555855f
1 /**
2 * @file server.h Server API
3 * @ingroup core
4 *
5 * gaim
6 *
7 * Gaim is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25 #ifndef _GAIM_SERVER_H_
26 #define _GAIM_SERVER_H_
27
28 #include "account.h"
29 #include "conversation.h"
30 #include "prpl.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 int serv_send_im(GaimConnection *, const char *, const char *, GaimMessageFlags flags);
37 void serv_get_info(GaimConnection *, const char *);
38 void serv_set_info(GaimConnection *, const char *);
39 int serv_send_typing(GaimConnection *, const char *, int);
40 void serv_move_buddy(GaimBuddy *, GaimGroup *, GaimGroup *);
41 void serv_add_permit(GaimConnection *, const char *);
42 void serv_add_deny(GaimConnection *, const char *);
43 void serv_rem_permit(GaimConnection *, const char *);
44 void serv_rem_deny(GaimConnection *, const char *);
45 void serv_set_permit_deny(GaimConnection *);
46 void serv_join_chat(GaimConnection *, GHashTable *);
47 void serv_reject_chat(GaimConnection *, GHashTable *);
48 void serv_chat_invite(GaimConnection *, int, const char *, const char *);
49 void serv_chat_leave(GaimConnection *, int);
50 void serv_chat_whisper(GaimConnection *, int, const char *, const char *);
51 int serv_chat_send(GaimConnection *, int, const char *, GaimMessageFlags flags);
52 void serv_alias_buddy(GaimBuddy *);
53 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias);
54 void serv_got_typing(GaimConnection *gc, const char *name, int timeout,
55 GaimTypingState state);
56 void serv_set_buddyicon(GaimConnection *gc, const char *filename);
57 void serv_got_typing_stopped(GaimConnection *gc, const char *name);
58 void serv_got_im(GaimConnection *gc, const char *who, const char *msg,
59 GaimMessageFlags flags, time_t mtime);
60 void serv_got_chat_invite(GaimConnection *gc, const char *name,
61 const char *who, const char *message,
62 GHashTable *data);
63 GaimConversation *serv_got_joined_chat(GaimConnection *gc,
64 int id, const char *name);
65 void serv_got_chat_left(GaimConnection *g, int id);
66 void serv_got_chat_in(GaimConnection *g, int id, const char *who,
67 GaimMessageFlags flags, const char *message, time_t mtime);
68 void serv_send_file(GaimConnection *gc, const char *who, const char *file);
69 void serv_voice_chat(GaimConnection *gc, const char *who);
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif /* _GAIM_SERVER_H_ */

mercurial