r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / pipe.h
blobb3635758156e45b94b41e019a7274f001ecfe4ae
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 */