ekg2
plugins/gg/gg.h
Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2003 Wojtek Kaniewski <wojtekka@irc.pl
00005  *                2004 Piotr Kupisiewicz <deletek@ekg2.org>
00006  *                2004 - 2006 Adam Mikuta <adamm@ekg2.org>
00007  *
00008  *  This program is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License Version 2 as
00010  *  published by the Free Software Foundation.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #ifndef __EKG_GG_GG_H
00023 #define __EKG_GG_GG_H
00024 
00025 #include <libgadu.h>
00026 #include <ekg/dynstuff.h>
00027 #include <ekg/plugins.h>
00028 #include <ekg/userlist.h>
00029 
00030 COMMAND(gg_command_image); /* images.c */
00031 
00032 extern plugin_t gg_plugin;
00033 extern char *last_tokenid;
00034 
00035 /* variables */
00036 extern int gg_config_display_token;
00037 extern int gg_config_audio;
00038 extern int gg_config_dcc;
00039 extern char *gg_config_dcc_ip;
00040 extern char *gg_config_dcc_limit;
00041 extern int gg_config_dcc_port;
00042 extern int gg_config_get_images;
00043 extern char *gg_config_images_dir;
00044 extern int gg_config_image_size;
00045 extern int gg_config_split_messages;
00046 
00047 typedef enum {
00048         GG_QUIET_CHANGE = 0x0001
00049 } gg_quiet_t;
00050 
00051 typedef struct {
00052         struct          gg_session *sess;       /* sesja */
00053         list_t          searches;               /* operacje szukania */
00054         list_t          passwds;                /* operacje zmiany hasła */
00055         gg_quiet_t      quiet;                  /* co ma być cicho */
00056         int             curr_prtcl_ver;         /* current protocol version */
00057 
00058                 /* (annoying) description scrolling */
00059         unsigned int    scroll_op       : 1;
00060         int             scroll_pos;
00061         time_t          scroll_last;
00062 } gg_private_t;
00063 
00064 void gg_register_commands();
00065 
00066 WATCHER_SESSION(gg_session_handler);
00067 
00068 typedef struct {
00069         char *uid;
00070         session_t *session;
00071 } gg_currently_checked_t;
00072 
00073 extern list_t gg_currently_checked;
00074 
00080 typedef struct {
00081 
00082         int protocol;           
00084 } gg_userlist_private_t;
00085 
00086 #define gg_userlist_priv_get(u) ((gg_userlist_private_t *) userlist_private_get(&gg_plugin, u))
00087 
00088 #endif /* __EKG_GG_GG_H */
00089 
00090 /*
00091  * Local Variables:
00092  * mode: c
00093  * c-file-style: "k&r"
00094  * c-basic-offset: 8
00095  * indent-tabs-mode: t
00096  * End:
00097  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje