summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-send.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-10 02:02:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-10 02:02:26 +0000
commite4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0 (patch)
treeb69359528adf2716cf3d4a765d3f0f7767565be7 /src/irc/dcc/dcc-send.h
parent118f9a11ebfc521198d39fd3048ad462ace696ed (diff)
downloadirssi-e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0.zip
DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types. Nick changes affect DCC chats. /WHOIS without parameters works properly in DCC CHAT queries. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-send.h')
-rw-r--r--src/irc/dcc/dcc-send.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-send.h b/src/irc/dcc/dcc-send.h
new file mode 100644
index 00000000..493b4cd8
--- /dev/null
+++ b/src/irc/dcc/dcc-send.h
@@ -0,0 +1,28 @@
+#ifndef __DCC_SEND_H
+#define __DCC_SEND_H
+
+#include "dcc.h"
+
+#define DCC_SEND(dcc) \
+ MODULE_CHECK_CAST_MODULE(dcc, SEND_DCC_REC, type, "DCC", "SEND")
+
+#define IS_DCC_SEND(dcc) \
+ (DCC_SEND(dcc) ? TRUE : FALSE)
+
+typedef struct {
+#include "dcc-file-rec.h"
+
+ unsigned int file_quoted:1; /* file name was received quoted ("file name") */
+
+ /* fastsending: */
+ unsigned int fastsend:1;
+ unsigned int waitforend:1; /* file is sent, just wait for the replies from the other side */
+ unsigned int gotalldata:1; /* got all acks from the other end (needed to make sure the end of transfer works right) */
+} SEND_DCC_REC;
+
+#define DCC_SEND_TYPE module_get_uniq_id_str("DCC", "SEND")
+
+void dcc_send_init(void);
+void dcc_send_deinit(void);
+
+#endif