HawkTracer  0.10.0
registry.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_REGISTRY_H
2 #define HAWKTRACER_REGISTRY_H
3 
4 #include <hawktracer/timeline.h>
5 
7 
20 
29 
40 
41 /* TODO: this API should probably be removed */
49 HT_API HT_EventKlass** ht_registry_get_event_klasses(size_t* out_klass_count);
50 
52 
53 #endif /* HAWKTRACER_REGISTRY_H */
HT_API size_t ht_registry_push_registry_klasses_to_listener(HT_TimelineListenerCallback callback, void *listener, HT_Boolean serialize)
Pushes information about registered event klasses (HT_EventKlassInfoEvent and HT_EventKlassFieldInfoE...
HT_DECLS_BEGIN HT_API HT_ErrorCode ht_registry_register_feature(HT_FeatureKlass *klass)
Registers new a new feature in the system.
#define HT_API
Defines a directive for exporting/importing symbols from DLL.
Definition: macros.h:76
#define HT_DECLS_END
Defines an end of C linkage block.
Definition: macros.h:17
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
HT_DECLS_BEGIN typedef void(* HT_TimelineListenerCallback)(TEventPtr events, size_t buffer_size, HT_Boolean serialized, void *user_data)
A callback for the timeline listener.
Definition: timeline_listener.h:20
HT_API HT_EventKlassId ht_registry_register_event_klass(HT_EventKlass *event_klass)
Registers new event klass in the system, or gets identifier if klass is already registered.
typedefHT_DECLS_BEGIN struct _HT_EventKlass HT_EventKlass
Definition: events.h:11
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
HT_DECLS_BEGIN typedef uint32_t HT_EventKlassId
An unsigned integer used for event klass identifiers.
Definition: base_types.h:12
The struct represents a feature class.
Definition: feature.h:28
HT_API HT_EventKlass ** ht_registry_get_event_klasses(size_t *out_klass_count)
Returns a list of all the klasses registered in HawkTracer library.