From 065df3be0626be1b64a81f5c5b8120b7dd6b36ae Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 30 Jan 2003 17:28:10 +0000 Subject: [PATCH] 2003-01-30 Marcus Brinkmann * types.h (EngineObject): Move typedef to ... * engine.h: ... here. * types.h (GpgObject): Move typedef to ... * rungpg.c: ... here. * types.h (GpgsmObject): Move typedef to ... * engine-gpgsm.c: ... here. --- trunk/gpgme/ChangeLog | 7 +++++++ trunk/gpgme/engine-gpgsm.c | 2 ++ trunk/gpgme/engine.h | 3 +++ trunk/gpgme/rungpg.c | 2 ++ trunk/gpgme/types.h | 12 ------------ 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index f6692e3..e309509 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,5 +1,12 @@ 2003-01-30 Marcus Brinkmann + * types.h (EngineObject): Move typedef to ... + * engine.h: ... here. + * types.h (GpgObject): Move typedef to ... + * rungpg.c: ... here. + * types.h (GpgsmObject): Move typedef to ... + * engine-gpgsm.c: ... here. + * util.h (return_if_fail, return_null_if_fail, return_val_if_fail): Remove macro. * gpgme.c (gpgme_cancel): Don't use return_if_fail. diff --git a/trunk/gpgme/engine-gpgsm.c b/trunk/gpgme/engine-gpgsm.c index 38c2c0f..82d719a 100644 --- a/trunk/gpgme/engine-gpgsm.c +++ b/trunk/gpgme/engine-gpgsm.c @@ -97,7 +97,9 @@ struct gpgsm_object_s struct GpgmeIOCbs io_cbs; }; +typedef struct gpgsm_object_s *GpgsmObject; + static const char * gpgsm_get_version (void) { diff --git a/trunk/gpgme/engine.h b/trunk/gpgme/engine.h index de782da..a56ec85 100644 --- a/trunk/gpgme/engine.h +++ b/trunk/gpgme/engine.h @@ -23,6 +23,9 @@ #include "types.h" +struct engine_object_s; +typedef struct engine_object_s *EngineObject; + GpgmeError _gpgme_engine_new (GpgmeProtocol proto, EngineObject *r_engine); void _gpgme_engine_release (EngineObject engine); void _gpgme_engine_set_status_handler (EngineObject engine, diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index ca1cb0b..2b0e4d3 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -123,7 +123,9 @@ struct gpg_object_s struct GpgmeIOCbs io_cbs; }; +typedef struct gpg_object_s *GpgObject; + static void gpg_io_event (void *engine, GpgmeEventIO type, void *type_data) { diff --git a/trunk/gpgme/types.h b/trunk/gpgme/types.h index 30ed724..90d7129 100644 --- a/trunk/gpgme/types.h +++ b/trunk/gpgme/types.h @@ -32,18 +32,6 @@ typedef GpgmeError (*GpgmeCommandHandler) (void*, GpgmeStatusCode code, const char *keyword, const char **result); -/*-- engine.c --*/ -struct engine_object_s; -typedef struct engine_object_s *EngineObject; - -/*-- engine-gpgsm.c --*/ -struct gpgsm_object_s; -typedef struct gpgsm_object_s *GpgsmObject; - -/*-- rungpg.c --*/ -struct gpg_object_s; -typedef struct gpg_object_s *GpgObject; - /*-- verify.c --*/ struct verify_result_s; typedef struct verify_result_s *VerifyResult; -- 2.26.2