Added decryption
[gpgme.git] / gpgme / types.h
1 /* types.h -  Some type definitions
2  *      Copyright (C) 2000 Werner Koch (dd9jn)
3  *
4  * This file is part of GPGME.
5  *
6  * GPGME is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * GPGME is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19  */
20
21 #ifndef TYPES_H
22 #define TYPES_H
23
24 #include "gpgme.h"  /* external objects and prototypes */
25
26 typedef unsigned char byte;
27
28
29 typedef enum {
30     GPGME_DATA_MODE_NONE  = 0,
31     GPGME_DATA_MODE_IN    = 1,
32     GPGME_DATA_MODE_OUT   = 2,
33     GPGME_DATA_MODE_INOUT = 3
34 } GpgmeDataMode;
35
36
37 /*
38  * Declaration of internal objects
39  */
40
41 /*-- rungpg.c --*/
42 struct gpg_object_s;
43 typedef struct gpg_object_s *GpgObject;
44
45
46 /*-- verify.c --*/
47 struct verify_result_s;
48 typedef struct verify_result_s *VerifyResult;
49
50 /*-- decrypt.c --*/
51 struct decrypt_result_s;
52 typedef struct decrypt_result_s *DecryptResult;
53
54 /*-- key.c --*/
55
56
57 #endif /* TYPES_H */
58
59
60
61
62