From 3234b1bf1d6939772677d64f6c1e1820ec98e3cd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Nov 2016 09:24:17 +0100 Subject: core: Add public function gpgme_get_ctx_flag. * src/gpgme.h.in (gpgme_get_ctx_flag): New. * src/gpgme.c (gpgme_set_ctx_flag): Move down the file and add a trace statement. (gpgme_get_ctx_flag): New. * src/gpgme.def, src/libgpgme.vers: Add new interface. Signed-off-by: Werner Koch --- doc/gpgme.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc/gpgme.texi') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 7eabab48..e47979c5 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -2929,6 +2929,19 @@ This function returns @code{0} on success. @end deftypefun +@deftypefun {const char *} gpgme_get_ctx_flag @ + (@w{gpgme_ctx_t @var{ctx}}, @ + @w{const char *@var{name}}) + +The value of flags settable by @code{gpgme_set_ctx_flag} can be +retrieved by this function. If @var{name} is unknown the function +returns @code{NULL}. For boolean flags an empty string is returned +for False and the string "1" is returned for True; either atoi(3) or a +test for an empty string can be used to get the boolean value. + +@end deftypefun + + @node Locale @subsection Locale @cindex locale, default -- cgit v1.2.3