root/openpgpsdk/trunk/include/openpgpsdk/types.h

Revision 470 (checked in by ben, 6 years ago)

Untested, non-functional, partial encryption implementation.

Line 
1 /** \file
2  */
3
4 #ifndef OPS_TYPES_H
5 #define OPS_TYPES_H
6
7 /** Special type for intermediate function casting, avoids warnings on
8     some platforms
9 */
10 typedef void (*ops_void_fptr)(void);
11 #define ops_fcast(f) ((ops_void_fptr)f)
12
13 /** ops_map_t
14  */
15 typedef struct
16     {
17     int type;
18     char *string;
19     } ops_map_t;
20
21 /** Boolean type */
22 typedef unsigned ops_boolean_t;
23
24 /** ops_content_tag_t */
25 typedef enum ops_content_tag_t ops_content_tag_t;
26
27 typedef struct _ops_crypt_t ops_crypt_t;
28
29 /** ops_hash_t */
30 typedef struct _ops_hash_t ops_hash_t;
31
32 /**
33    keep both ops_content_tag_t and ops_packet_tag_t because we might
34    want to introduce some bounds checking i.e. is this really a valid value
35    for a packet tag?
36 */
37 typedef enum ops_content_tag_t ops_packet_tag_t;
38 /** SS types are a subset of all content types.
39  \todo may be want to separate these out?
40 */
41 typedef enum ops_content_tag_t ops_ss_type_t;
42 /* typedef enum ops_sig_type_t ops_sig_type_t; */
43
44 /** Revocation Reason type */
45 typedef unsigned char ops_ss_rr_code_t;
46
47 /** ops_parse_type_t */
48 typedef enum ops_parse_type_t ops_parse_type_t;
49
50 /** ops_parser_content_t */
51 typedef struct ops_parser_content_t ops_parser_content_t;
52
53 /** Reader Flags */
54 /*
55 typedef enum
56     {
57     OPS_RETURN_LENGTH=1,
58     } ops_reader_flags_t;
59 typedef enum ops_reader_ret_t ops_reader_ret_t;
60 */
61
62 /** Writer flags */
63 typedef enum
64     {
65     OPS_WF_DUMMY,
66     } ops_writer_flags_t;
67 /** ops_writer_ret_t */
68 typedef enum ops_writer_ret_t ops_writer_ret_t;
69
70 /**
71  * \ingroup Create
72  * Contains the required information about how to write
73  */
74 typedef struct ops_create_info ops_create_info_t;
75
76 #endif
77
Note: See TracBrowser for help on using the browser.