diff options
author | Valentin Batz <senneth@irssi.org> | 2005-08-24 19:42:17 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-08-24 19:42:17 +0000 |
commit | e4a562d9ef6c22f9abbd32266c3c102fcaa3737a (patch) | |
tree | 9112f96bb2aeaee4b764c5cf7d1ae21fd1086431 | |
parent | bc91469cf70d33c145f82315878b9f9c320b3610 (diff) | |
download | irssi-e4a562d9ef6c22f9abbd32266c3c102fcaa3737a.zip |
moved the _NET_SENDBUF_REC definition out of core/net-sendbuffer.c and irc/proxy/listen.c into core/net-sendbuffer.h
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3948 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/core/net-sendbuffer.c | 9 | ||||
-rw-r--r-- | src/core/net-sendbuffer.h | 9 | ||||
-rw-r--r-- | src/irc/proxy/listen.c | 9 |
3 files changed, 9 insertions, 18 deletions
diff --git a/src/core/net-sendbuffer.c b/src/core/net-sendbuffer.c index fd1039d6..f8aac80c 100644 --- a/src/core/net-sendbuffer.c +++ b/src/core/net-sendbuffer.c @@ -23,15 +23,6 @@ #include "network.h" #include "net-sendbuffer.h" -struct _NET_SENDBUF_REC { - GIOChannel *handle; - - int send_tag; - int bufsize; - int bufpos; - char *buffer; /* Buffer is NULL until it's actually needed. */ -}; - static GSList *buffers; /* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE diff --git a/src/core/net-sendbuffer.h b/src/core/net-sendbuffer.h index d2388b41..f492821e 100644 --- a/src/core/net-sendbuffer.h +++ b/src/core/net-sendbuffer.h @@ -3,6 +3,15 @@ #define DEFAULT_BUFFER_SIZE 8192 +struct _NET_SENDBUF_REC { + GIOChannel *handle; + + int send_tag; + int bufsize; + int bufpos; + char *buffer; /* Buffer is NULL until it's actually needed. */ +}; + /* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE is used */ NET_SENDBUF_REC *net_sendbuffer_create(GIOChannel *handle, int bufsize); diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index 2239fe58..7386b405 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -30,15 +30,6 @@ #include "fe-common/core/printtext.h" /* FIXME: evil. need to do fe-proxy */ -struct _NET_SENDBUF_REC { - GIOChannel *handle; - - int send_tag; - int bufsize; - int bufpos; - char *buffer; /* Buffer is NULL until it's actually needed. */ -}; - GSList *proxy_listens; GSList *proxy_clients; |