mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
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
This commit is contained in:
parent
bad59362d3
commit
9f5c181936
@ -35,7 +35,7 @@
|
||||
#include <signal.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
static GSList *processes;
|
||||
GSList *processes;
|
||||
static int signal_exec_input;
|
||||
|
||||
static void exec_wi_destroy(EXEC_WI_REC *rec)
|
||||
|
@ -40,6 +40,8 @@ struct PROCESS_REC {
|
||||
unsigned int silent:1; /* don't print "process exited with level xx" */
|
||||
};
|
||||
|
||||
extern GSList *processes;
|
||||
|
||||
void fe_exec_init(void);
|
||||
void fe_exec_deinit(void);
|
||||
|
||||
|
@ -70,6 +70,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:
|
||||
|
Loading…
Reference in New Issue
Block a user