ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
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  */