repo.or.cz
/
cinelerra_cv
/
ct.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git]
/
cinelerra
/
pipe.h
blob
052684f8d80cdb1d0d3924f7abf78b69608ecc1a
1
#ifndef PIPE_H
2
#define PIPE_H
3
4
#include <fcntl.h>
5
#include
"guicast.h"
6
#include
"asset.h"
7
8
extern
"C"
{
9
extern
int
sigpipe_received
;
10
}
11
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
() ;
19
20
int
fd
;
21
private
:
22
int
substitute
() ;
23
int
open
(
char
*
mode
) ;
24
25
char
sub_char
;
26
char
*
sub_str
;
27
char
*
command
;
28
char
complete
[
BCTEXTLEN
];
29
FILE
*
file
;
30
};
31
32
#endif
/* PIPE_H */
33
/*
34
// Local Variables:
35
// mode: C++
36
// c-file-style: "linux"
37
// End:
38
*/