diff options
author | Werner Koch <[email protected]> | 2010-03-22 12:46:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-03-22 12:46:05 +0000 |
commit | e64038608be28c14ed72b0372529762953de898f (patch) | |
tree | 3847da576d4f2e6c542ce6737179a11afcc1a487 /common/estream.h | |
parent | Builds again for W32. (diff) | |
download | gnupg-e64038608be28c14ed72b0372529762953de898f.tar.gz gnupg-e64038608be28c14ed72b0372529762953de898f.zip |
More chnages to use estream. Add a way to replace the standard
descriptors.
Diffstat (limited to 'common/estream.h')
-rw-r--r-- | common/estream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/estream.h b/common/estream.h index 67856bf76..f63864e67 100644 --- a/common/estream.h +++ b/common/estream.h @@ -80,6 +80,7 @@ #define es_fdopen_nc _ESTREAM_PREFIX(es_fdopen_nc) #define es_fpopen _ESTREAM_PREFIX(es_fpopen) #define es_fpopen_nc _ESTREAM_PREFIX(es_fpopen_nc) +#define _es_set_std_fd _ESTREAM_PREFIX(_es_set_std_fd) #define _es_get_std_stream _ESTREAM_PREFIX(_es_get_std_stream) #define es_freopen _ESTREAM_PREFIX(es_freopen) #define es_fopencookie _ESTREAM_PREFIX(es_fopencookie) @@ -251,6 +252,7 @@ int es_fclose (estream_t stream); int es_fileno (estream_t stream); int es_fileno_unlocked (estream_t stream); +void _es_set_std_fd (int no, int fd); estream_t _es_get_std_stream (int fd); #define es_stdin _es_get_std_stream (0) @@ -364,7 +366,6 @@ int es_write_sanitized_utf8_buffer (estream_t stream, size_t *bytes_written); #endif /*GNUPG_MAJOR_VERSION*/ - #ifdef __cplusplus } #endif |