From f5f42523c696b79935c67a56ae6a86d310e4b95f Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 24 May 2007 18:02:22 +0000 Subject: LuaTask's "Command" is now able to return the stdout's output. --- include/InPipe.h | 4 +++- include/LuaTask.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') 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 #include #include +#include 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; -- cgit v1.2.3