HawkTracer  0.10.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 
34 typedef void(*HT_DestroyCallback)(void* data);
35 
37 #define HT_TRUE 1
38 
39 #define HT_FALSE 0
40 
42 #define HT_INVALID_KLASS_ID ((HT_EventKlassId)-1)
43 
45 #define HT_INVALID_FEATURE_ID ((uint32_t)-1)
46 
48 typedef enum
49 {
51  HT_ERR_OK = 0,
84 } HT_ErrorCode;
85 
87 typedef enum
88 {
94 
96 
98 typedef enum
99 {
112 
116 
117 #endif /* HAWKTRACER_BASE_TYPES_H */
Data type unsigned integer.
Definition: base_types.h:114
HT_MKCREFLECT_Types_Ext
Defines list of data types of event fields.
Definition: base_types.h:98
Big-endian order.
Definition: base_types.h:92
Definition: mkcreflect.h:23
Unknown error.
Definition: base_types.h:53
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:69
Memory allocation failed.
Definition: base_types.h:56
Try to register a timeline feature using ID which is already taken by some other feature.
Definition: base_types.h:59
Cannot start tcp server.
Definition: base_types.h:72
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:77
Data type string.
Definition: base_types.h:103
HT_ErrorCode
Defines list of possible errors returned by library functions.
Definition: base_types.h:48
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
Missing argument.
Definition: base_types.h:83
Unable to create listener container.
Definition: base_types.h:75
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
Try to use feature that has not been registered in the system.
Definition: base_types.h:61
void(* HT_DestroyCallback)(void *data)
A type of function called to destroy data element.
Definition: base_types.h:34
No error.
Definition: base_types.h:51
Try to register container with name already used in registry.
Definition: base_types.h:67
Data type pointer.
Definition: base_types.h:111
Data type double.
Definition: base_types.h:109
Try to register too many features in the system.
Definition: base_types.h:63
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:101
Little-endian order.
Definition: base_types.h:90
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
Invalid argument.
Definition: base_types.h:79
Definition: mkcreflect.h:21
Data type integer.
Definition: base_types.h:105
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:87
Definition: mkcreflect.h:26
Out of range.
Definition: base_types.h:81
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:107