mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Updated Irssi proxy to work with latest version, thanks to fuchs :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@697 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3eea53d2ee
commit
d549526735
9 changed files with 773 additions and 9 deletions
55
src/irc/proxy/proxy.h
Normal file
55
src/irc/proxy/proxy.h
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#ifndef __PROXY_H
|
||||
#define __PROXY_H
|
||||
|
||||
|
||||
#include "module.h"
|
||||
#include "../../core/modules.h"
|
||||
|
||||
#include "network.h"
|
||||
#include <core/line-split.h>
|
||||
#include <core/servers-redirect.h>
|
||||
#include "commands.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
MODULE_REC *plugin;
|
||||
gboolean loaded;
|
||||
|
||||
IPADDR ip;
|
||||
gint port;
|
||||
gchar *password;
|
||||
|
||||
gint listen_tag;
|
||||
gint listen_handle;
|
||||
|
||||
GSList *clients;
|
||||
}
|
||||
PLUGIN_DATA;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
LINEBUF_REC *buffer;
|
||||
|
||||
gchar *nick;
|
||||
gint handle;
|
||||
gint tag;
|
||||
|
||||
SERVER_REC *server;
|
||||
gboolean pass_sent;
|
||||
gboolean connected;
|
||||
}
|
||||
CLIENT_REC;
|
||||
|
||||
void plugin_proxy_setup_init(MODULE_REC *plugin);
|
||||
void plugin_proxy_setup_deinit(MODULE_REC *plugin);
|
||||
|
||||
void plugin_proxy_listen_init();
|
||||
void plugin_proxy_listen_deinit();
|
||||
|
||||
void proxy_settings_init(void);
|
||||
|
||||
void plugin_proxy_dump_data(CLIENT_REC *client);
|
||||
|
||||
/* #define MODULE_NAME "proxy" */
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue