From 8c20500a5d26619ed63e1bcee4404453c90f4a03 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 4 Dec 2007 11:23:31 +0000 Subject: Allow configuraton of pinentry tooltip. Other minor buf fixes. --- common/membuf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/membuf.h') 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); -- cgit v1.2.3