comparison pidgin/plugins/crazychat/crazychat.h @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 32c366eeeb99
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 #ifndef __CRAZYCHAT_H__
2 #define __CRAZYCHAT_H__
3
4 #include <glib.h>
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <netinet/in.h>
8 #include <gtk/gtk.h>
9 #include "filter.h"
10 #include "gaim.h"
11
12 #ifdef HAVE_CONFIG_H
13 # include "config.h"
14 #endif
15
16 struct crazychat;
17
18 /* --- type definitions --- */
19
20 typedef enum { INVITE = 0, ACCEPT, ACCEPTED, CONNECTED } CC_STATE;
21
22 /**
23 * Finds the CrazyChat session with the handle.
24 * @param cc global crazychat data structure
25 * @param handle the peer name
26 * @return the cc_session if found, or NULL
27 */
28 struct cc_session *cc_find_session(struct crazychat *cc, char *handle);
29
30 /**
31 * Adds a new session with a peer, unless a peer session already exists.
32 * Makes a deep copy of the handle.
33 * @param cc global crazychat data structure
34 * @param handle the peer name
35 * @return the new/old cc_session
36 */
37 struct cc_session *cc_add_session(struct crazychat *cc, char *handle);
38
39 /**
40 * Removes a crazychat session with a peer.
41 * @param cc global crazychat data structure
42 * @param session the cc_session to remove
43 */
44 void cc_remove_session(struct crazychat *cc, struct cc_session *session);
45
46 #endif /* __CRAZYCHAT_H__ */