mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-25 10:49:57 +01:00
4991e018bf
* misc.c (pct_expando): %t means extension, not name ("jpg", not "jpeg"). * keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h, exec.c: Allow the caller to determine the temp file extension when starting an exec_write and change all callers.
23 lines
535 B
C
23 lines
535 B
C
#ifndef _EXEC_H_
|
|
#define _EXEC_H_
|
|
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include "iobuf.h"
|
|
|
|
struct exec_info
|
|
{
|
|
int progreturn,binary,writeonly,madedir,use_temp_files,keep_temp_files;
|
|
pid_t child;
|
|
FILE *tochild;
|
|
IOBUF fromchild;
|
|
char *command,*ext,*tempdir,*tempfile_in,*tempfile_out;
|
|
};
|
|
|
|
int exec_write(struct exec_info **info,const char *program,
|
|
const char *args_in,const char *ext,int writeonly,int binary);
|
|
int exec_read(struct exec_info *info);
|
|
int exec_finish(struct exec_info *info);
|
|
|
|
#endif /* !_EXEC_H_ */
|