diff options
author | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
commit | e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch) | |
tree | 31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /include/iobuf.h | |
parent | See ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff) | |
download | gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.gz gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip |
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r-- | include/iobuf.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/iobuf.h b/include/iobuf.h index 92671005c..56607b723 100644 --- a/include/iobuf.h +++ b/include/iobuf.h @@ -36,8 +36,9 @@ typedef struct iobuf_struct *IOBUF; +/* fixme: we should hide most of this stuff */ struct iobuf_struct { - int usage; /* 1 input , 2 output, 3 temp */ + int use; /* 1 input , 2 output, 3 temp */ unsigned long nlimit; unsigned long nbytes; /* used together with nlimit */ unsigned long ntotal; /* total bytes read (position of stream) */ @@ -69,7 +70,7 @@ struct iobuf_struct { int iobuf_debug_mode; -IOBUF iobuf_alloc(int usage, size_t bufsize); +IOBUF iobuf_alloc(int use, size_t bufsize); IOBUF iobuf_temp(void); IOBUF iobuf_temp_with_content( const char *buffer, size_t length ); IOBUF iobuf_open( const char *fname ); @@ -136,6 +137,6 @@ int iobuf_in_block_mode( IOBUF a ); #define iobuf_get_temp_buffer(a) ( (a)->d.buf ) #define iobuf_get_temp_length(a) ( (a)->d.len ) -#define iobuf_is_temp(a) ( (a)->usage == 3 ) +#define iobuf_is_temp(a) ( (a)->use == 3 ) #endif /*G10_IOBUF_H*/ |