summaryrefslogtreecommitdiff
path: root/include/InPipe.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/InPipe.h')
-rw-r--r--include/InPipe.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/InPipe.h b/include/InPipe.h
new file mode 100644
index 0000000..251523d
--- /dev/null
+++ b/include/InPipe.h
@@ -0,0 +1,22 @@
+#ifndef __INPIPE_H__
+#define __INPIPE_H__
+#ifdef __cplusplus
+
+#include <Handle.h>
+
+class InPipe : public Handle {
+ public:
+ InPipe();
+ virtual ~InPipe();
+ void Hook();
+ virtual bool CanWrite();
+ virtual bool CanRead();
+ virtual String GetName();
+ private:
+ int p[2], hooked;
+};
+
+#else
+#error This only works with a C++ compiler
+#endif
+#endif