mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +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
71
src/perl/irc/Notifylist.xs
Normal file
71
src/perl/irc/Notifylist.xs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc
|
||||
|
||||
void
|
||||
notifies()
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
stash = gv_stashpv("Irssi::Irc::Notifylist", 0);
|
||||
for (tmp = notifies; tmp != NULL; tmp = tmp->next) {
|
||||
XPUSHs(sv_2mortal(sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(tmp->data))), stash)));
|
||||
}
|
||||
|
||||
Irssi::Irc::Notifylist
|
||||
notifylist_add(mask, ircnets, away_check, idle_check_time)
|
||||
char *mask
|
||||
char *ircnets
|
||||
int away_check
|
||||
int idle_check_time
|
||||
|
||||
void
|
||||
notifylist_remove(mask)
|
||||
char *mask
|
||||
|
||||
Irssi::Irc::Server
|
||||
notifylist_ison(nick, serverlist)
|
||||
char *nick
|
||||
char *serverlist
|
||||
|
||||
Irssi::Irc::Notifylist
|
||||
notifylist_find(mask, ircnet)
|
||||
char *mask
|
||||
char *ircnet
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Server
|
||||
#*******************************
|
||||
|
||||
int
|
||||
notifylist_ison_server(server, nick)
|
||||
Irssi::Irc::Server server
|
||||
char *nick
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Notifylist PREFIX = notifylist_
|
||||
#*******************************
|
||||
|
||||
void
|
||||
values(notify)
|
||||
Irssi::Irc::Notifylist notify
|
||||
PREINIT:
|
||||
HV *hv;
|
||||
AV *av;
|
||||
char **tmp;
|
||||
PPCODE:
|
||||
hv = newHV();
|
||||
hv_store(hv, "mask", 4, new_pv(notify->mask), 0);
|
||||
hv_store(hv, "away_check", 10, newSViv(notify->away_check), 0);
|
||||
hv_store(hv, "idle_check_time", 15, newSViv(notify->idle_check_time), 0);
|
||||
|
||||
av = newAV();
|
||||
for (tmp = notify->ircnets; *tmp != NULL; tmp++) {
|
||||
av_push(av, new_pv(*tmp));
|
||||
}
|
||||
hv_store(hv, "ircnets", 7, newRV_noinc((SV*)av), 0);
|
||||
XPUSHs(sv_2mortal(newRV_noinc((SV*)hv)));
|
||||
|
||||
int
|
||||
notifylist_ircnets_match(rec, ircnet)
|
||||
Irssi::Irc::Notifylist rec
|
||||
char *ircnet
|
||||
Loading…
Add table
Add a link
Reference in a new issue