mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
bc91469cf7
commit
e4a562d9ef
@ -23,15 +23,6 @@
|
|||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "net-sendbuffer.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;
|
static GSList *buffers;
|
||||||
|
|
||||||
/* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE
|
/* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE
|
||||||
|
@ -3,6 +3,15 @@
|
|||||||
|
|
||||||
#define DEFAULT_BUFFER_SIZE 8192
|
#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
|
/* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE
|
||||||
is used */
|
is used */
|
||||||
NET_SENDBUF_REC *net_sendbuffer_create(GIOChannel *handle, int bufsize);
|
NET_SENDBUF_REC *net_sendbuffer_create(GIOChannel *handle, int bufsize);
|
||||||
|
@ -30,15 +30,6 @@
|
|||||||
|
|
||||||
#include "fe-common/core/printtext.h" /* FIXME: evil. need to do fe-proxy */
|
#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_listens;
|
||||||
GSList *proxy_clients;
|
GSList *proxy_clients;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user