irssi/src/perl/irc/Dcc.xs
Timo Sirainen e76aafff31 DCC updated
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1163 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:15:55 +00:00

98 lines
1.7 KiB
Text

MODULE = Irssi::Irc PACKAGE = Irssi::Irc
void
dccs()
PREINIT:
GSList *tmp;
HV *stash;
PPCODE:
stash = gv_stashpv("Irssi::Irc::Dcc", 0);
for (tmp = dcc_conns; tmp != NULL; tmp = tmp->next) {
push_bless(tmp->data, stash);
}
Irssi::Irc::Dcc
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_create(type, nick, arg, server, chat)
int type
char *nick
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_
#*******************************
Irssi::Irc::Dcc
item_get_dcc(item)
Irssi::Windowitem item
#*******************************
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Server
#*******************************
void
dcc_ctcp_message(server, target, notice, msg)
Irssi::Irc::Server server
char *target
int notice
char *msg
CODE:
dcc_ctcp_message(server, target, NULL, notice, msg);
#*******************************
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Dcc PREFIX = dcc_
#*******************************
void
dcc_ctcp_message(chat, target, notice, msg)
Irssi::Irc::Dcc chat
char *target
int notice
char *msg
CODE:
dcc_ctcp_message(chat->server, target, chat, notice, msg);
void
dcc_destroy(dcc)
Irssi::Irc::Dcc dcc
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