From e76aafff31496658c02686f0411d4adc83f70fb4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Jan 2001 16:15:55 +0000 Subject: [PATCH] DCC updated git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1163 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/irc/Dcc.xs | 38 +++++++++++++++++++++++++++++++++++--- src/perl/irc/module.h | 2 ++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/perl/irc/Dcc.xs b/src/perl/irc/Dcc.xs index 222c80e4..2d45d506 100644 --- a/src/perl/irc/Dcc.xs +++ b/src/perl/irc/Dcc.xs @@ -12,15 +12,42 @@ PPCODE: } Irssi::Irc::Dcc -dcc_find_item(type, nick, arg) +dcc_find_request_latest(type) + int type + +Irssi::Irc::Dcc +dcc_find_request(type, nick, arg) int type char *nick char *arg +char * +dcc_type2str(type) + int type +CODE: + RETVAL = (char *) dcc_type2str(type); +OUTPUT: + RETVAL + +int +dcc_str2type(type) + char *type + Irssi::Irc::Dcc -dcc_find_by_port(nick, port) +dcc_create(type, nick, arg, server, chat) + int type char *nick - int port + char *arg + Irssi::Irc::Server server + Irssi::Irc::Dcc chat + +Irssi::Irc::Dcc +dcc_chat_find_id(id) + char *id + +char * +dcc_get_download_path(fname) + char *fname #******************************* MODULE = Irssi::Irc PACKAGE = Irssi::Windowitem PREFIX = item_ @@ -64,3 +91,8 @@ void dcc_chat_send(dcc, data) Irssi::Irc::Dcc dcc char *data + +void +dcc_reject(dcc, server) + Irssi::Irc::Dcc dcc + Irssi::Irc::Server server diff --git a/src/perl/irc/module.h b/src/perl/irc/module.h index 6e6e8e27..1c8890ea 100644 --- a/src/perl/irc/module.h +++ b/src/perl/irc/module.h @@ -11,6 +11,8 @@ #include "netsplit.h" #include "dcc/dcc.h" +#include "dcc/dcc-chat.h" +#include "dcc/dcc-get.h" #include "flood/autoignore.h" #include "notifylist/notifylist.h"