diff options
author | Werner Koch <[email protected]> | 2014-04-10 09:47:19 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-04-10 09:48:20 +0000 |
commit | 77931a9a1468b0cfbaafd4153867d90764a6d258 (patch) | |
tree | 4d04e5b7d055b6bf1f8b931bc573603cd805ad65 /doc/gpgme.texi | |
parent | Remove compiler warning from test (diff) | |
download | gpgme-77931a9a1468b0cfbaafd4153867d90764a6d258.tar.gz gpgme-77931a9a1468b0cfbaafd4153867d90764a6d258.zip |
Add gpgme_get_dirinfo.
* src/dirinfo.c (gpgme_get_dirinfo): New.
* tests/t-engine-info.c (main): Print results from that function.
Diffstat (limited to 'doc/gpgme.texi')
-rw-r--r-- | doc/gpgme.texi | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 4425396b..e12fd738 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -878,6 +878,41 @@ allocated string describing the protocol @var{protocol}, or @section Engine Version Check @cindex version check, of the engines +@deftypefun @w{const char *} gpgme_get_dirinfo (@w{cons char *@var{what}}) +The function @code{gpgme_get_dirinfo} returns a statically allocated +string with the value associated to @var{what}. The returned values +are the defaults and won't change even after +@code{gpgme_set_engine_info} has been used to configure a different +engine. @code{NULL} is returned if no value is available. Commonly +supported values for @var{what} are: + +@table @code +@item homedir +Return the default home directory. + +@item agent-socket +Return the name of the socket to connect to the gpg-agent. + +@item uiserver-socket +Return the name of the socket to connect to the user interface server. + +@item gpgconf-name +Return the file name of the engine configuration tool. + +@item gpg-name +Return the file name of the OpenPGP engine. + +@item gpgsm-name +Return the file name of the CMS engine. + +@item g13-name +Return the name of the file container encryption engine. + +@end table + +@end deftypefun + + @deftypefun gpgme_error_t gpgme_engine_check_version (@w{gpgme_protocol_t @var{protocol}}) The function @code{gpgme_engine_check_version} verifies that the engine implementing the protocol @var{PROTOCOL} is installed in the @@ -916,7 +951,8 @@ reserved for future use, so always check before you use it. @item const char *home_dir This is a string holding the directory name of the crypto engine's configuration directory. If it is @code{NULL}, then the default -directory is used. +directory is used. See @code{gpgme_get_dirinfo} on how to get the +default directory. @item const char *version This is a string containing the version number of the crypto engine. |