mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
Perl works again :) Split to Irssi and Irssi::Irc packages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@705 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c1a191955b
commit
62dee8fdaf
20 changed files with 904 additions and 23 deletions
44
src/perl/irc/IrcChannel.xs
Normal file
44
src/perl/irc/IrcChannel.xs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Channel PREFIX = irc_channel_
|
||||
|
||||
void
|
||||
bans(channel)
|
||||
Irssi::Irc::Channel channel
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
stash = gv_stashpv("Irssi::Irc::Ban", 0);
|
||||
for (tmp = channel->banlist; tmp != NULL; tmp = tmp->next) {
|
||||
XPUSHs(sv_2mortal(sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(tmp->data))), stash)));
|
||||
}
|
||||
|
||||
void
|
||||
ebans(channel)
|
||||
Irssi::Irc::Channel channel
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
stash = gv_stashpv("Irssi::Irc::Ban", 0);
|
||||
for (tmp = channel->ebanlist; tmp != NULL; tmp = tmp->next) {
|
||||
XPUSHs(sv_2mortal(sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(tmp->data))), stash)));
|
||||
}
|
||||
|
||||
void
|
||||
invites(channel)
|
||||
Irssi::Irc::Channel channel
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
for (tmp = channel->invitelist; tmp != NULL; tmp = tmp->next) {
|
||||
XPUSHs(new_pv(tmp->data));
|
||||
}
|
||||
|
||||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Server PREFIX = irc_
|
||||
|
||||
Irssi::Irc::Channel
|
||||
irc_channel_create(server, name, automatic)
|
||||
Irssi::Irc::Server server
|
||||
char *name
|
||||
int automatic
|
||||
Loading…
Add table
Add a link
Reference in a new issue