*** empty log message ***
[gnutls.git] / libextra / opencdk / types.h
blob6b313b71a71589dab9392e12b5f14319abcb027a
1 /* types.h - Some type definitions
2 * Copyright (C) 2002 Timo Schulz
4 * This file is part of OpenCDK.
6 * OpenCDK 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.
11 * OpenCDK 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.
16 * You should have received a copy of the GNU General Public License
17 * along with OpenCDK; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef CDK_TYPES_H
22 #define CDK_TYPES_H
24 #include <gcrypt.h> /*FIXME!*/
26 #ifndef HAVE_BYTE_TYPEDEF
27 # undef byte
28 typedef unsigned char byte;
29 # define HAVE_BYTE_TYPEDEF
30 #endif
32 #ifndef HAVE_U16_TYPEDEF
33 # undef u16
34 typedef unsigned short u16;
35 # define HAVE_U16_TYPEDEF
36 #endif
38 #ifndef HAVE_U32_TYPEDEF
39 # undef u32
40 typedef unsigned int u32;
41 # define HAVE_U32_TYPEDEF
42 #endif
44 #ifndef DIM
45 # define DIM(v) (sizeof (v)/sizeof ((v)[0]))
46 # define DIMof(type, member) DIM(((type *)0)->member)
47 #endif
50 struct cdk_verify_result_s;
51 typedef struct cdk_verify_result_s *_cdk_verify_result_t;
53 #endif /* CDK_TYPES_H */