1 /**
2  * @file
3  * Pass files through external commands (filters)
4  *
5  * @authors
6  * @copyright
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 2 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef MUTT_LIB_FILTER_H
22 #define MUTT_LIB_FILTER_H
23 
24 #include <stdio.h>
25 #include <unistd.h>
26 
27 #define EXEC_SHELL "/bin/sh"
28 
29 pid_t filter_create   (const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err);
30 pid_t filter_create_fd(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err, int fdin, int fdout, int fderr);
31 int   filter_wait     (pid_t pid);
32 
33 #endif /* MUTT_LIB_FILTER_H */
34