summaryrefslogtreecommitdiff
path: root/src/perl/irc/Channel.xs
blob: 833e4f5989b22a8f6d854cff93bb4c84faf3d9d5 (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
#include "module.h"

MODULE = Irssi::Irc::Channel	PACKAGE = Irssi::Irc  PREFIX = irc_
PROTOTYPES: ENABLE

char *
irc_get_mask(nick, address, flags)
	char *nick
	char *address
	int flags

int
MASK_NICK()
CODE:
	RETVAL = IRC_MASK_NICK;
OUTPUT:
	RETVAL

int
MASK_USER()
CODE:
	RETVAL = IRC_MASK_USER;
OUTPUT:
	RETVAL

int
MASK_HOST()
CODE:
	RETVAL = IRC_MASK_HOST;
OUTPUT:
	RETVAL

int
MASK_DOMAIN()
CODE:
	RETVAL = IRC_MASK_DOMAIN;
OUTPUT:
	RETVAL

MODULE = Irssi::Irc::Channel	PACKAGE = Irssi::Irc::Channel  PREFIX = irc_

void
bans(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
PPCODE:
	for (tmp = channel->banlist; tmp != NULL; tmp = tmp->next) {
		XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Ban")));
	}

void
ebans(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
PPCODE:
	for (tmp = channel->ebanlist; tmp != NULL; tmp = tmp->next) {
		XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Ban")));
	}

void
invites(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
PPCODE:
	for (tmp = channel->invitelist; tmp != NULL; tmp = tmp->next) {
		XPUSHs(new_pv(tmp->data));
	}

Irssi::Irc::Nick
irc_nick_insert(channel, nick, op, voice, send_massjoin)
	Irssi::Irc::Channel channel
	char *nick
	int op
	int voice
	int send_massjoin
CODE:
	RETVAL = irc_nicklist_insert(channel, nick, op, voice, send_massjoin);
OUTPUT:
	RETVAL

MODULE = Irssi::Irc::Channel	PACKAGE = Irssi::Irc::Server  PREFIX = irc_

Irssi::Irc::Channel
irc_channel_create(server, name, automatic)
	Irssi::Irc::Server server
	char *name
	int automatic