OSAPI  0.29
Open System API
general_types.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Generic type declarations
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_GENERAL_TYPES_H_
11 #define OSAPI_GENERAL_TYPES_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // System headers
20 #include <stdint.h>
21 #include <stdbool.h>
22 
31 
32 // *****************************************************************************************
33 //
34 // Section: Type declarations
35 //
36 // *****************************************************************************************
37 
38 // Generic OSAPI wide types
40 #define OSAPI_NULL_CHAR_POINTER ( (char * ) 0 )
41 
43 #define OSAPI_EMPTY_STRING ""
44 
46 #define OSAPI_SPACE_STRING " "
47 
49 #define OSAPI_OPTIONS_END -999999
50 
52 typedef uint64_t t_size;
53 
55 typedef int64_t t_offset;
56 
58 typedef uint8_t Byte;
59 
61 typedef char t_char;
62 
64 typedef int t_protocol;
65 
66 // Own module types
67 
69 typedef Byte t_module;
70 
73 {
74  char * name;
75  int value;
76 };
77 
80 
81 
82 
85 
86 
87 #endif /* OSAPI_GENERAL_TYPES_H_ */
t_protocol
int t_protocol
Definition of a protocol type.
Definition: general_types.h:64
Byte
uint8_t Byte
Definition of a Byte type.
Definition: general_types.h:58
t_offset
int64_t t_offset
Definition of OSAPI size type.
Definition: general_types.h:55
t_size
uint64_t t_size
Definition of OSAPI size type.
Definition: general_types.h:52
t_module
Byte t_module
Definition of the module type.
Definition: general_types.h:69
general_optional_pair_S::value
int value
The value part of the pair.
Definition: general_types.h:75
general_optional_pair_S::name
char * name
The name part of the pair.
Definition: general_types.h:74
general_optional_pair_S
Defines a generic pair name/value structure.
Definition: general_types.h:72
t_char
char t_char
Definition of own char type.
Definition: general_types.h:61