summaryrefslogtreecommitdiffstats
path: root/common/membuf.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-12-04 12:23:31 +0100
committerWerner Koch <wk@gnupg.org>2007-12-04 12:23:31 +0100
commit8c20500a5d26619ed63e1bcee4404453c90f4a03 (patch)
tree7fe5e8c1e07a6d6fc4e489a1148a796d5e4ce56e /common/membuf.h
parent2007-12-04 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-8c20500a5d26619ed63e1bcee4404453c90f4a03.tar.xz
gnupg2-8c20500a5d26619ed63e1bcee4404453c90f4a03.zip
Allow configuraton of pinentry tooltip.
Other minor buf fixes.
Diffstat (limited to 'common/membuf.h')
-rw-r--r--common/membuf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/membuf.h b/common/membuf.h
index cb261bd32..75b506d5d 100644
--- a/common/membuf.h
+++ b/common/membuf.h
@@ -33,7 +33,9 @@ struct private_membuf_s
typedef struct private_membuf_s membuf_t;
/* Return the current length of the membuf. */
-#define get_membuf_len(a) ((a)->len)
+#define get_membuf_len(a) ((a)->len)
+#define is_membuf_ready(a) ((a)->buf || (a)->out_of_core)
+#define MEMBUF_ZERO { 0, 0, NULL, 0}
void init_membuf (membuf_t *mb, int initiallen);
void init_membuf_secure (membuf_t *mb, int initiallen);