00001 /* $Id: gg.h 4513 2008-08-26 23:31:55Z wiechu $ */ 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 00057 /* (annoying) description scrolling */ 00058 unsigned int scroll_op : 1; 00059 int scroll_pos; 00060 time_t scroll_last; 00061 } gg_private_t; 00062 00063 void gg_register_commands(); 00064 00065 WATCHER_SESSION(gg_session_handler); 00066 00067 typedef struct { 00068 char *uid; 00069 session_t *session; 00070 } gg_currently_checked_t; 00071 00072 extern list_t gg_currently_checked; 00073 00079 typedef struct { 00080 00081 int protocol; 00083 } gg_userlist_private_t; 00084 00085 #define gg_userlist_priv_get(u) ((gg_userlist_private_t *) userlist_private_get(&gg_plugin, u)) 00086 00087 #endif /* __EKG_GG_GG_H */ 00088 00089 /* 00090 * Local Variables: 00091 * mode: c 00092 * c-file-style: "k&r" 00093 * c-basic-offset: 8 00094 * indent-tabs-mode: t 00095 * End: 00096 */
1.5.1