summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/procctl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/procctl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/procctl.h b/noncore/apps/opie-console/procctl.h
index e2161f3..5e96423 100644
--- a/noncore/apps/opie-console/procctl.h
+++ b/noncore/apps/opie-console/procctl.h
@@ -8,26 +8,29 @@
8 8
9#include <qmap.h> 9#include <qmap.h>
10 10
11 11
12struct ProcContainer { 12struct ProcContainer {
13 pid_t pid; 13 pid_t pid;
14 int fd; 14 int fd;
15 int status; 15 int status;
16 ProcContainer* prev; 16 ProcContainer* prev;
17}; 17};
18 18
19class ProcCtl { 19class ProcCtl {
20public: 20private:
21 ProcCtl(); 21 ProcCtl();
22public:
22 ~ProcCtl(); 23 ~ProcCtl();
23 24
25 ProcCtl* self();
24 int status(pid_t)const; 26 int status(pid_t)const;
25 void add( pid_t, int fd ); 27 void add( pid_t, int fd );
26 void remove( pid_t ); 28 void remove( pid_t );
27 void remove( ProcContainer ); 29 void remove( ProcContainer );
28private: 30private:
29 static void signal_handler(int); 31 static void signal_handler(int);
30 static ProcContainer* m_last; 32 static ProcContainer* m_last;
33 static ProcCtl* m_self;
31}; 34};
32 35
33#endif 36#endif