diff options
author | Timo Sirainen <cras@irssi.org> | 2003-10-01 16:02:43 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-10-01 16:02:43 +0000 |
commit | 65463924d217501bb07c02e1e760669130329af0 (patch) | |
tree | acfa99d520f34068b3cfd41efeb0f3721a7a959c /src/irc/dcc/dcc-server.h | |
parent | 579c1c2efd1e95ab510aeae80ff615791bb03053 (diff) | |
download | irssi-65463924d217501bb07c02e1e760669130329af0.zip |
Added DCC SERVER support by Mark Trumbull
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3127 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-server.h')
-rw-r--r-- | src/irc/dcc/dcc-server.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-server.h b/src/irc/dcc/dcc-server.h new file mode 100644 index 00000000..4f6f248e --- /dev/null +++ b/src/irc/dcc/dcc-server.h @@ -0,0 +1,30 @@ +#ifndef __DCC_SERVER_H +#define __DCC_SERVER_H + +#include "dcc.h" + +#define DCC_SERVER(dcc) \ + MODULE_CHECK_CAST_MODULE(dcc, SERVER_DCC_REC, type, "DCC", "SERVER") + +#define IS_DCC_SERVER(dcc) \ + (DCC_SERVER(dcc) ? TRUE : FALSE) + +struct SERVER_DCC_REC { +#include "dcc-rec.h" + LINEBUF_REC *readbuf; + NET_SENDBUF_REC *sendbuf; + + unsigned int accept_send:1; /* Accept SEND connections */ + unsigned int accept_chat:1; /* Accept CHAT connections */ + unsigned int accept_fserve:1; /* Accept FSERVE connections */ + unsigned int connection_established:1; /* We have made a connection */ +}; + +#define DCC_SERVER_TYPE module_get_uniq_id_str("DCC", "SERVER") + +typedef struct SERVER_DCC_REC SERVER_DCC_REC; + +void dcc_server_init(void); +void dcc_server_deinit(void); + +#endif |