diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-08-01 00:29:59 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-08-01 00:29:59 +0200 |
commit | 4acb900fec6961c82d67f0d87e1e6a973324005d (patch) | |
tree | 5dd4f8993cf563ee1425cc5cdc9d19f093099ecf /extpipe.h | |
parent | 95a84da5e1becd28517e2b71341ea994cdeae828 (diff) | |
download | vdr-plugin-xmltv2vdr-4acb900fec6961c82d67f0d87e1e6a973324005d.tar.gz vdr-plugin-xmltv2vdr-4acb900fec6961c82d67f0d87e1e6a973324005d.tar.bz2 |
Updated error reporting
Updated parsing
Diffstat (limited to 'extpipe.h')
-rw-r--r-- | extpipe.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -8,19 +8,20 @@ class cExtPipe { private: pid_t pid; - FILE *f; + int f_stdout; + int f_stderr; public: cExtPipe(void); ~cExtPipe(); - FILE *Out() + int Out() const { - return f; + return f_stdout; } - operator FILE* () const + int Err() const { - return f; + return f_stderr; } - bool Open(const char *Command, const char *Mode); + bool Open(const char *Command); int Close(int &status); }; |