summaryrefslogtreecommitdiff
path: root/extpipe.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-08-01 00:29:59 +0200
committerJochen Dolze <vdr@dolze.de>2011-08-01 00:29:59 +0200
commit4acb900fec6961c82d67f0d87e1e6a973324005d (patch)
tree5dd4f8993cf563ee1425cc5cdc9d19f093099ecf /extpipe.h
parent95a84da5e1becd28517e2b71341ea994cdeae828 (diff)
downloadvdr-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.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/extpipe.h b/extpipe.h
index 58a2ef1..a820cd3 100644
--- a/extpipe.h
+++ b/extpipe.h
@@ -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);
};