summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-10-14 11:27:08 +0000
committerWerner Koch <wk@gnupg.org>2009-10-14 11:27:08 +0000
commit1dce00882d78e0bb30011067f383583f2b551172 (patch)
tree786fe931d85c8e9fe2951a5e28e37360d1ee9390 /doc
parenta7eaf02bbfacd80029b4ed1b4fe38c2fe63cfcf2 (diff)
downloadlibassuan-1dce00882d78e0bb30011067f383583f2b551172.tar.gz
Add new ducntion assuan_get_command_name. This makes
error reporting in the server much easier.
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog4
-rw-r--r--doc/assuan.texi9
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 95441d5..c567640 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-14 Werner Koch <wk@g10code.com>
+
+ * assuan.texi (Utilities): Describe assuan_get_command_name.
+
2009-09-21 Marcus Brinkmann <marcus@g10code.de>
* assuan.texi: Update to new API.
diff --git a/doc/assuan.texi b/doc/assuan.texi
index a3ec0a3..adfc86d 100644
--- a/doc/assuan.texi
+++ b/doc/assuan.texi
@@ -1675,6 +1675,15 @@ functions like @code{fdopen} or @code{dup}.
@end deftypefun
+@deftypefun @w{const char *} assuan_get_command_name (@w{assuan_context_t @var{ctx}})
+
+Return the name of the command currently processed by a handler.
+The returned string is valid until the next call to an Assuan
+function on the same context. Returns @code{NULL} if no handler is
+executed or the command is not known.
+@end deftypefun
+
+
@deftypefun int assuan_get_input_fd (@w{assuan_context_t @var{ctx}})
Return the file descriptor sent by the client using the last @code{INPUT}