core: Add new items for gpgme_get_dirinfo.
authorWerner Koch <wk@gnupg.org>
Mon, 22 Aug 2016 14:57:51 +0000 (16:57 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 22 Aug 2016 14:57:51 +0000 (16:57 +0200)
commit24e61984c9532924135c57b8ff98489a2d3bd4a3
tree69fecf2bfd603953600a402947c09542f382fd74
parentc9e7dcb100d807583d8e312da459561138231376
core: Add new items for gpgme_get_dirinfo.

* src/dirinfo.c (WANT_SYSCONFDIR, WANT_LIBEXECDIR, WANT_LIBDIR): New.
(WANT_DATADIR, WANT_LCOALEDIR, WANT_AGENT_SSH_SOCKET): New
(WANT_DIRMNGR_SOCKET): New.
(dirinfo): Add fields 'sysconfdir', 'bindir', 'libexecdir', 'libdir',
'datadir', 'localedir', 'agent_ssh_socket', and 'dirmngr_socket'.
(parse_output): Set these fields.
(get_gpgconf_item): Return them.
(gpgme_get_dirinfo): Likewise.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpgme.texi
src/dirinfo.c
tests/t-engine-info.c