diff options
| author | Werner Koch <[email protected]> | 2016-07-13 11:57:14 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-07-13 11:57:14 +0000 | 
| commit | 2095b1573a8196ba3efdf817324d1b3ee05cbb93 (patch) | |
| tree | a557df1a306a68c47f448c38ba2ab3a8ad61f14f /src/engine-g13.c | |
| parent | Cpp: Add feature enum for new identify (diff) | |
| download | gpgme-2095b1573a8196ba3efdf817324d1b3ee05cbb93.tar.gz gpgme-2095b1573a8196ba3efdf817324d1b3ee05cbb93.zip | |
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 <[email protected]>
Diffstat (limited to 'src/engine-g13.c')
| -rw-r--r-- | src/engine-g13.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/engine-g13.c b/src/engine-g13.c index 8f24f4c2..afb085d6 100644 --- a/src/engine-g13.c +++ b/src/engine-g13.c @@ -212,7 +212,8 @@ g13_release (void *engine)  static gpgme_error_t -g13_new (void **engine, const char *file_name, const char *home_dir) +g13_new (void **engine, const char *file_name, const char *home_dir, +         const char *version)  {    gpgme_error_t err = 0;    engine_g13_t g13; @@ -224,6 +225,8 @@ g13_new (void **engine, const char *file_name, const char *home_dir)    char *dft_ttytype = NULL;    char *optstr; +  (void)version; /* Not yet used.  */ +    g13 = calloc (1, sizeof *g13);    if (!g13)      return gpg_error_from_syserror (); | 
