diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-03 17:05:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-03 17:05:09 +0000 |
commit | 9f5c1819362553e135ce87f9c1afc4b82aff0ffb (patch) | |
tree | 029922a3abc6fe54918fc4db5e532f7bcd71ac6f /src/perl | |
parent | bad59362d3728be611ee7f9e3627ec1b4ddb8f6c (diff) | |
download | irssi-9f5c1819362553e135ce87f9c1afc4b82aff0ffb.zip |
Added processes to be extern instead of static. Also added Irssi::processes()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2182 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl')
-rw-r--r-- | src/perl/ui/UI.xs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/perl/ui/UI.xs b/src/perl/ui/UI.xs index 04fce9fe..c3b69900 100644 --- a/src/perl/ui/UI.xs +++ b/src/perl/ui/UI.xs @@ -71,6 +71,16 @@ MODULE = Irssi::UI PACKAGE = Irssi::UI PROTOTYPES: ENABLE void +processes() +PREINIT: + GSList *tmp; +PPCODE: + for (tmp = processes; tmp != NULL; tmp = tmp->next) { + XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::UI::Process"))); + } + + +void init() CODE: if (initialized) return; |