Dependencies finally work correctly in perl libraries (they're each compiled

separately now). Added statusbar code to available to perl, it's now
possible to create new statusbar items with perl scripts.

statusbar_items_redraw(char *name) can now be used to easily redraw all
named statusbar items in screen.

Probably several other changes I've already forgotten :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1861 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-20 19:52:07 +00:00 committed by cras
commit 76c6e9ab83
48 changed files with 430 additions and 126 deletions

54
src/perl/irc/Channel.xs Normal file
View file

@ -0,0 +1,54 @@
#include "module.h"
MODULE = Irssi::Irc::Channel PACKAGE = Irssi::Irc::Channel PREFIX = irc_
PROTOTYPES: ENABLE
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