summaryrefslogtreecommitdiff
path: root/src/perl/ui
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-03 17:05:09 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-03 17:05:09 +0000
commit9f5c1819362553e135ce87f9c1afc4b82aff0ffb (patch)
tree029922a3abc6fe54918fc4db5e532f7bcd71ac6f /src/perl/ui
parentbad59362d3728be611ee7f9e3627ec1b4ddb8f6c (diff)
downloadirssi-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/ui')
-rw-r--r--src/perl/ui/UI.xs10
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;