summaryrefslogtreecommitdiff
path: root/src/perl/irc/Dcc.xs
blob: 2d45d506d1ada40853ac78c000153ef58744a9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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