dba1515d9c
* rungpg.h (GpgStatusHandler): Rename type to GpgmeStatusHandler and move to ... * types.h (GpgmeStatusHandler): ... here. * rungpg.h (GpgColonLineHandler): Rename type to GpgmeColonLineHandler. and move to ... * types.h (GpgmeColonLineHandler): ... here. * rungpg.h (GpgCommandHandler): Rename type to GpgmeCommandHandler. and move to ... * types.h (GpgmeCommandHandler): ... here. * engine.h: Don't include "rungpg.h". (_gpgme_engine_set_status_handler): Change type of argument from GpgStatusHandler to GpgmeStatusHandler. (_gpgme_engine_set_colon_line_handler): Change type of argument from GpgColonLineHandler to GpgmeColonLineHandler. (_gpgme_engine_set_command_handler): Change type of argument from GpgCommandHandler to GpgmeCommandHandler. * engine-gpgsm.h: Don't include "rungpg.h". (_gpgme_gpgsm_set_status_handler): Change type of argument from GpgStatusHandler to GpgmeStatusHandler. (_gpgme_gpgsm_set_colon_line_handler): Change type of argument from GpgColonLineHandler to GpgmeColonLineHandler. * engine-gpgsm.c: Do not include "rungpg.h". (struct gpgsm_object_s): Change type of status.fnc to GpgmeStatusHandler. Change type of colon.fnc to GpgmeColonLineHandler. (gpgsm_assuan_simple_command): Change type of argument from GpgStatusHandler to GpgmeStatusHandler. (_gpgme_gpgsm_set_status_handler): Likewise. (_gpgme_gpgsm_set_colon_line_handler): Change type of argument from GpgColonLineHandler to GpgmeColonLineHandler. * rungpg.h (_gpgme_gpg_set_status_handler): Change type of argument from GpgStatusHandler to GpgmeStatusHandler. (_gpgme_gpg_set_colon_line_handler): Change type of argument from GpgColonLineHandler to GpgmeColonLineHandler. (_gpgme_gpg_set_command_handler): Change type of argument from GpgCommandHandler to GpgmeCommandHandler. * rungpg.c (struct gpg_object_s): Change type of status.fnc to GpgmeStatusHandler. Change type of colon.fnc to GpgmeColonLineHandler. Change type of cmd.fnc to GpgmeCommandLineHandler. (_gpgme_gpg_set_status_handler): Change type of argument FNC to GpgmeStatusHandler. (_gpgme_gpg_set_colon_line_handler): Change type of argument FNC to GpgmeColonLineHandler. (_gpgme_gpg_set_command_handler): Change type of argument FNC to GpgmeCommandHandler. * engine.c (_gpgme_engine_set_status_handler): Change type of argument FNC to GpgmeStatusHandler. (_gpgme_engine_set_colon_line_handler): Change type of argument FNC to GpgmeColonLineHandler. (_gpgme_engine_set_command_handler): Change type of argument FNC to GpgmeCommandHandler.
99 lines
2.5 KiB
C
99 lines
2.5 KiB
C
/* types.h - Some type definitions
|
|
Copyright (C) 2000 Werner Koch (dd9jn)
|
|
Copyright (C) 2001, 2002 g10 Code GmbH
|
|
|
|
This file is part of GPGME.
|
|
|
|
GPGME is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
GPGME is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GPGME; if not, write to the Free Software Foundation,
|
|
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
#ifndef TYPES_H
|
|
#define TYPES_H
|
|
|
|
#include "gpgme.h" /* external objects and prototypes */
|
|
|
|
#ifndef HAVE_BYTE_TYPEDEF
|
|
typedef unsigned char byte;
|
|
#endif
|
|
#ifndef HAVE_ULONG_TYPEDEF
|
|
typedef unsigned long ulong;
|
|
#endif
|
|
|
|
|
|
/*
|
|
* Declaration of internal objects
|
|
*/
|
|
|
|
typedef void (*GpgmeStatusHandler) (GpgmeCtx, GpgmeStatusCode code,
|
|
char *args);
|
|
typedef void (*GpgmeColonLineHandler) (GpgmeCtx, char *line);
|
|
typedef const char *(*GpgmeCommandHandler) (void*, GpgmeStatusCode code,
|
|
const char *keyword);
|
|
|
|
|
|
/*-- 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;
|
|
|
|
/*-- decrypt.c --*/
|
|
struct decrypt_result_s;
|
|
typedef struct decrypt_result_s *DecryptResult;
|
|
|
|
/*-- sign.c --*/
|
|
struct sign_result_s;
|
|
typedef struct sign_result_s *SignResult;
|
|
|
|
/*-- encrypt.c --*/
|
|
struct encrypt_result_s;
|
|
typedef struct encrypt_result_s *EncryptResult;
|
|
|
|
/*-- passphrase.c --*/
|
|
struct passphrase_result_s;
|
|
typedef struct passphrase_result_s *PassphraseResult;
|
|
|
|
/*-- import.c --*/
|
|
struct import_result_s;
|
|
typedef struct import_result_s *ImportResult;
|
|
|
|
/*-- delete.c --*/
|
|
struct delete_result_s;
|
|
typedef struct delete_result_s *DeleteResult;
|
|
|
|
/*-- genkey.c --*/
|
|
struct genkey_result_s;
|
|
typedef struct genkey_result_s *GenKeyResult;
|
|
|
|
/*-- keylist.c --*/
|
|
struct keylist_result_s;
|
|
typedef struct keylist_result_s *KeylistResult;
|
|
|
|
/*-- edit.c --*/
|
|
struct edit_result_s;
|
|
typedef struct edit_result_s *EditResult;
|
|
|
|
|
|
#endif /* TYPES_H */
|