summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-24 18:02:22 +0000
committerpixel <pixel>2007-05-24 18:02:22 +0000
commitf5f42523c696b79935c67a56ae6a86d310e4b95f (patch)
tree7e4b03fb814d51bbac40df22ae020c3f0f303ffb /include
parentce53fd2fcf346abe0114522c1df5186dc57b7043 (diff)
LuaTask's "Command" is now able to return the stdout's output.
Diffstat (limited to 'include')
-rw-r--r--include/InPipe.h4
-rw-r--r--include/LuaTask.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/InPipe.h b/include/InPipe.h
index 2828da3..7b77c4e 100644
--- a/include/InPipe.h
+++ b/include/InPipe.h
@@ -12,8 +12,10 @@ class InPipe : public Handle {
virtual bool CanWrite();
virtual bool CanRead();
virtual String GetName();
+ void HalfClose();
private:
- int p[2], hooked;
+ int p[2];
+ bool hooked, halfclosed;
};
#endif
diff --git a/include/LuaTask.h b/include/LuaTask.h
index 85e228f..fcc1363 100644
--- a/include/LuaTask.h
+++ b/include/LuaTask.h
@@ -4,6 +4,7 @@
#include <Task.h>
#include <Buffer.h>
#include <BLua.h>
+#include <InPipe.h>
class LuaTask : public Task {
public:
@@ -16,9 +17,10 @@ class LuaTask : public Task {
private:
Lua * L;
String cmd;
- int nargs, stacktop;
+ int nargs, stacktop, r;
Task * c;
Buffer * b;
+ InPipe * p;
String task;