summaryrefslogtreecommitdiff
path: root/extpipe.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-12-29 16:54:30 +0100
committerJochen Dolze <vdr@dolze.de>2010-12-29 16:54:30 +0100
commit83cf2436ce3f2ed9ce4e0a0847b10d5144907061 (patch)
tree5cde43e0da488ac42c1b4c757a8054cfe410d588 /extpipe.h
downloadvdr-plugin-xmltv2vdr-83cf2436ce3f2ed9ce4e0a0847b10d5144907061.tar.gz
vdr-plugin-xmltv2vdr-83cf2436ce3f2ed9ce4e0a0847b10d5144907061.tar.bz2
First commit
Diffstat (limited to 'extpipe.h')
-rw-r--r--extpipe.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/extpipe.h b/extpipe.h
new file mode 100644
index 0000000..ebca65d
--- /dev/null
+++ b/extpipe.h
@@ -0,0 +1,23 @@
+#ifndef _EXTPIPE_H
+#define _EXTPIPE_H
+
+#include <sys/types.h>
+#include <stdio.h>
+
+class cExtPipe
+{
+private:
+ pid_t pid;
+ FILE *f;
+public:
+ cExtPipe(void);
+ ~cExtPipe();
+ operator FILE* ()
+ {
+ return f;
+ }
+ bool Open(const char *Command, const char *Mode);
+ int Close(int &status);
+};
+
+#endif \ No newline at end of file