Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / pipe.h
blob052684f8d80cdb1d0d3924f7abf78b69608ecc1a
1 #ifndef PIPE_H
2 #define PIPE_H
4 #include <fcntl.h>
5 #include "guicast.h"
6 #include "asset.h"
8 extern "C" {
9 extern int sigpipe_received;
12 class Pipe {
13 public:
14 Pipe(char *command, char *sub_str = 0, char sub_char = '%');
15 ~Pipe() ;
16 int open_read() ;
17 int open_write() ;
18 void close() ;
20 int fd;
21 private:
22 int substitute() ;
23 int open(char *mode) ;
25 char sub_char;
26 char *sub_str;
27 char *command;
28 char complete[BCTEXTLEN];
29 FILE *file;
32 #endif /* PIPE_H */
34 // Local Variables:
35 // mode: C++
36 // c-file-style: "linux"
37 // End: