HawkTracer  0.8.0
base_types.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_BASE_TYPES_H
2 #define HAWKTRACER_BASE_TYPES_H
3 
4 #include <hawktracer/macros.h>
6 
7 #include <inttypes.h>
8 
10 
12 typedef uint32_t HT_EventKlassId;
14 typedef uint64_t HT_TimestampNs;
16 typedef uint64_t HT_EventId;
18 typedef uint64_t HT_DurationNs;
20 typedef int HT_Boolean;
22 typedef uint8_t* TEventPtr;
24 typedef uint32_t HT_ThreadId;
26 typedef uint8_t HT_Byte;
27 
29 #define HT_TRUE 1
30 
31 #define HT_FALSE 0
32 
34 #define HT_INVALID_KLASS_ID ((HT_EventKlassId)-1)
35 
37 typedef enum
38 {
40  HT_ERR_OK = 0,
65 } HT_ErrorCode;
66 
68 typedef enum
69 {
75 
77 
79 typedef enum
80 {
93 
97 
98 #endif /* HAWKTRACER_BASE_TYPES_H */
Data type unsigned integer.
Definition: base_types.h:95
HT_MKCREFLECT_Types_Ext
Defines list of data types of event fields.
Definition: base_types.h:79
Big-endian order.
Definition: base_types.h:73
Definition: mkcreflect.h:23
Unknown error.
Definition: base_types.h:42
Definition: mkcreflect.h:22
#define HT_DECLS_END
Defines an end of C linkage block.
Definition: macros.h:17
Cannot open file.
Definition: base_types.h:54
Memory allocation failed.
Definition: base_types.h:45
Try to register a timeline feature using ID which is already taken by some other feature.
Definition: base_types.h:48
Cannot start tcp server.
Definition: base_types.h:57
uint8_t HT_Byte
An unsigned integer guaranteed to be 8 bits on all platforms.
Definition: base_types.h:26
Format of an input data is invalid.
Definition: base_types.h:62
Data type string.
Definition: base_types.h:84
HT_ErrorCode
Defines list of possible errors returned by library functions.
Definition: base_types.h:37
int HT_Boolean
A standard boolean type, possible values: HT_TRUE, HT_FALSE.
Definition: base_types.h:20
Definition: mkcreflect.h:25
HT_DECLS_BEGIN const char uint8_t
Definition: core_events.h:11
Unable to create listener container.
Definition: base_types.h:60
uint64_t HT_TimestampNs
An unsigned integer used for representing timestamps in nanoseconds.
Definition: base_types.h:14
uint64_t HT_EventId
An unsigned integer used for event identifiers.
Definition: base_types.h:16
No error.
Definition: base_types.h:40
Try to register container with name already used in registry.
Definition: base_types.h:52
Data type pointer.
Definition: base_types.h:92
Data type double.
Definition: base_types.h:90
uint32_t HT_ThreadId
An unsigned integer used for thread identifiers.
Definition: base_types.h:24
Definition: mkcreflect.h:24
Data type struct.
Definition: base_types.h:82
Little-endian order.
Definition: base_types.h:71
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
Invalid argument.
Definition: base_types.h:64
Definition: mkcreflect.h:21
Data type integer.
Definition: base_types.h:86
HT_DECLS_BEGIN typedef uint32_t HT_EventKlassId
An unsigned integer used for event klass identifiers.
Definition: base_types.h:12
uint64_t HT_DurationNs
An unsigned integer used for representing duration in nanoseconds.
Definition: base_types.h:18
HT_Endianness
Defines supported byte ordering.
Definition: base_types.h:68
Definition: mkcreflect.h:26
uint8_t * TEventPtr
A pointer to a list of HT_Event (or derived) objects.
Definition: base_types.h:22
Data type float.
Definition: base_types.h:88