ekg2  GIT master
gg.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2003 Wojtek Kaniewski <wojtekka@irc.pl
5  * 2004 Piotr Kupisiewicz <deletek@ekg2.org>
6  * 2004 - 2006 Adam Mikuta <adamm@ekg2.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License Version 2 as
10  * published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21 
22 #ifndef __EKG_GG_GG_H
23 #define __EKG_GG_GG_H
24 
25 #include <libgadu.h>
26 
27 COMMAND(gg_command_image); /* images.c */
28 
29 extern plugin_t gg_plugin;
30 extern char *last_tokenid;
31 
32 /* variables */
33 extern int gg_config_display_token;
34 extern int gg_config_audio;
35 extern int gg_config_dcc;
36 extern char *gg_config_dcc_ip;
37 extern char *gg_config_dcc_limit;
38 extern int gg_config_dcc_port;
39 extern int gg_config_get_images;
40 extern char *gg_config_images_dir;
41 extern int gg_config_image_size;
42 extern int gg_config_split_messages;
43 
44 typedef enum {
45  GG_QUIET_CHANGE = 0x0001
46 } gg_quiet_t;
47 
48 typedef struct {
49  struct gg_session *sess; /* sesja */
50  list_t searches; /* operacje szukania */
51  list_t passwds; /* operacje zmiany hasła */
52  gg_quiet_t quiet; /* co ma być cicho */
53  int curr_prtcl_ver; /* current protocol version */
54 
55  /* (annoying) description scrolling */
56  unsigned int scroll_op : 1;
58  time_t scroll_last;
59 } gg_private_t;
60 
62 
64 
65 typedef struct {
66  char *uid;
69 
71 
77 typedef struct {
78 
79  int protocol;
82 
83 #define gg_userlist_priv_get(u) ((gg_userlist_private_t *) userlist_private_get(&gg_plugin, u))
84 
85 #endif /* __EKG_GG_GG_H */
86 
87 /*
88  * Local Variables:
89  * mode: c
90  * c-file-style: "k&r"
91  * c-basic-offset: 8
92  * indent-tabs-mode: t
93  * End:
94  */
int gg_config_dcc
Definition: dcc.c:28
int gg_command_image(const char *name, const char **params, session_t *session, const char *target, int quiet)
Definition: images.c:65
int gg_config_audio
Definition: dcc.c:27
int gg_config_dcc_port
Definition: dcc.c:29
int gg_config_get_images
Definition: images.c:41
Definition: sessions.h:127
int gg_config_split_messages
Definition: gg.c:58
time_t scroll_last
Definition: gg.h:58
int curr_prtcl_ver
Definition: gg.h:53
session_t * session
Definition: gg.h:67
gg_quiet_t quiet
Definition: gg.h:52
int protocol
Definition: gg.h:79
char * uid
Definition: gg.h:66
WATCHER_SESSION(gg_session_handler)
Definition: plugins.h:76
int gg_session_handler(int type, int fd, watch_type_t watch, session_t *s)
Definition: gg.c:1177
Definition: gg.h:77
gg_quiet_t
Definition: gg.h:44
Definition: gg.h:45
char * last_tokenid
Definition: gg.c:55
char * gg_config_images_dir
Definition: images.c:42
unsigned int scroll_op
Definition: gg.h:56
int scroll_pos
Definition: gg.h:57
void gg_register_commands()
Definition: commands.c:1828
int gg_config_image_size
Definition: images.c:40
Definition: gg.h:48
Definition: gg.h:65
plugin_t gg_plugin
Definition: gg.c:52
struct gg_session * sess
Definition: gg.h:49
char * gg_config_dcc_limit
Definition: dcc.c:31
list_t searches
Definition: gg.h:50
Definition: ekg_hash_benchmark.c:14
char * gg_config_dcc_ip
Definition: dcc.c:30
list_t gg_currently_checked
Definition: gg.c:54
COMMAND(gg_command_image)
list_t passwds
Definition: gg.h:51
int gg_config_display_token
Definition: gg.c:56