Standardize all protocol header guard macros.
[pidgin-git.git] / libpurple / protocols / gg / chat.h
blob73682d286aa43357e070e35ab36d91deb7ea29c3
1 /* purple
3 * Purple is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * Component written by Tomek Wasilczyk (http://www.wasilczyk.pl).
9 * This file is dual-licensed under the GPL2+ and the X11 (MIT) licences.
10 * As a recipient of this file you may choose, which license to receive the
11 * code under. As a contributor, you have to ensure the new code is
12 * compatible with both.
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
29 #ifndef PURPLE_GG_CHAT_H
30 #define PURPLE_GG_CHAT_H
32 #include <internal.h>
33 #include <libgadu.h>
35 typedef struct _ggp_chat_session_data ggp_chat_session_data;
37 #include "gg.h"
39 void ggp_chat_setup(PurpleConnection *gc);
40 void ggp_chat_cleanup(PurpleConnection *gc);
42 void ggp_chat_got_event(PurpleConnection *gc, const struct gg_event *ev);
44 GList * ggp_chat_info(PurpleConnection *gc);
45 GHashTable * ggp_chat_info_defaults(PurpleConnection *gc,
46 const char *chat_name);
47 char * ggp_chat_get_name(GHashTable *components);
48 void ggp_chat_join(PurpleConnection *gc, GHashTable *components);
49 void ggp_chat_leave(PurpleConnection *gc, int local_id);
50 void ggp_chat_invite(PurpleConnection *gc, int local_id, const char *message,
51 const char *who);
52 int ggp_chat_send(PurpleConnection *gc, int local_id, PurpleMessage *msg);
54 void ggp_chat_got_message(PurpleConnection *gc, uint64_t chat_id,
55 const char *message, time_t time, uin_t who);
57 PurpleRoomlist * ggp_chat_roomlist_get_list(PurpleConnection *gc);
59 #endif /* PURPLE_GG_CHAT_H */