core: Pass the engine's version string to the engine's new function.
authorWerner Koch <wk@gnupg.org>
Wed, 13 Jul 2016 11:57:14 +0000 (13:57 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Jul 2016 11:57:14 +0000 (13:57 +0200)
commit2095b1573a8196ba3efdf817324d1b3ee05cbb93
treea557df1a306a68c47f448c38ba2ab3a8ad61f14f
parent537cb871fd59f3a20c697a046715e6339ff6633b
core: Pass the engine's version string to the engine's new function.

* src/engine-backend.h (engine_ops): Add arg 'version' to NEW.
* src/engine-assuan.c (llass_new): Add dummy arg 'version'.
* src/engine-g13.c (g13_new): Ditto.
* src/engine-gpgconf.c (gpgconf_new): Ditto.
* src/engine-gpgsm.c (gpgsm_new): Ditto.
* src/engine-spawn.c (engspawn_new): Ditto.
* src/engine-uiserver.c (uiserver_new): Ditto.
* src/engine.c (_gpgme_engine_new): Pass version string to the new
function.
* src/engine-gpg.c (struct engine_gpg): Add field 'version'.
(gpg_new): Add arg 'version'.
(gpg_release): Free VERSION.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-assuan.c
src/engine-backend.h
src/engine-g13.c
src/engine-gpg.c
src/engine-gpgconf.c
src/engine-gpgsm.c
src/engine-spawn.c
src/engine-uiserver.c
src/engine.c