summaryrefslogtreecommitdiffstats
path: root/common/membuf.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-02-26 16:16:30 +0100
committerWerner Koch <wk@gnupg.org>2014-02-26 16:16:30 +0100
commit556562086acd2bc2f8e3aa3126ebf155715e042b (patch)
tree52db5f1beed87ee62b64b0e15d6b97c956fc9e5d /common/membuf.h
parentagent: Fixed unresolved symbol under Windows. (diff)
downloadgnupg2-556562086acd2bc2f8e3aa3126ebf155715e042b.tar.xz
gnupg2-556562086acd2bc2f8e3aa3126ebf155715e042b.zip
common: New function get_membuf_shrink.
* common/membuf.c (get_membuf_shrink): New.
Diffstat (limited to 'common/membuf.h')
-rw-r--r--common/membuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/membuf.h b/common/membuf.h
index bf4cf3687..dfa236d82 100644
--- a/common/membuf.h
+++ b/common/membuf.h
@@ -57,6 +57,7 @@ void put_membuf_str (membuf_t *mb, const char *string);
void put_membuf_printf (membuf_t *mb, const char *format,
...) JNLIB_GCC_A_PRINTF(2,3);
void *get_membuf (membuf_t *mb, size_t *len);
+void *get_membuf_shrink (membuf_t *mb, size_t *len);
const void *peek_membuf (membuf_t *mb, size_t *len);
#endif /*GNUPG_COMMON_MEMBUF_H*/