From c4ea1235d56f7ab89ff84fef894d9c0d378d8b72 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 13 Sep 2003 21:45:13 +0000 Subject: doc/ 2003-09-13 Marcus Brinkmann * gpgme.texi (Error Strings): Add gpgme_strerror_r. gpgme/ 2003-09-13 Marcus Brinkmann * gpgme.h (gpgme_strerror_r): New prototype. * error.c (gpgme_strerror_r): New function. --- doc/ChangeLog | 4 ++++ doc/gpgme.texi | 12 ++++++++++++ 2 files changed, 16 insertions(+) (limited to 'doc') diff --git a/doc/ChangeLog b/doc/ChangeLog index 16586ed4..dd2c2f02 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2003-09-13 Marcus Brinkmann + + * gpgme.texi (Error Strings): Add gpgme_strerror_r. + 2003-09-13 Marcus Brinkmann * gpgme.texi (Multi Threading): Update documentation. diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 30837f9a..1e00d752 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -1232,6 +1232,18 @@ The function @code{gpgme_strerror} returns a pointer to a statically allocated string containing a description of the error code contained in the error value @var{err}. This string can be used to output a diagnostic message to the user. + +This function is not thread safe. Use @code{gpgme_strerror_r} in +multi-threaded programs. +@end deftypefun + + +@deftypefun {char *} gpgme_strerror_r (@w{gpgme_error_t @var{err}}) +The function @code{gpgme_strerror_r} returns a pointer to a +dynamically allocated string containing a description of the error +code contained in the error value @var{err}. This string can be used +to output a diagnostic message to the user. When it is not needed +anymore, the user must deallocate it with @code{free}. @end deftypefun -- cgit v1.2.3