HawkTracer  0.8.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 
12 
21 HT_API HT_ErrorCode ht_registry_register_feature(uint32_t feature_id, HT_FeatureDisableCallback disable_callback);
22 
31 
42 
43 /* TODO: this API should probably be removed */
51 HT_API HT_EventKlass** ht_registry_get_event_klasses(size_t* out_klass_count);
52 
54 
55 #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...
#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_DECLS_BEGIN typedef void(* HT_FeatureDisableCallback)(HT_Timeline *)
A type of a callback which gets called when a timeline disables the feature.
Definition: registry.h:11
typedefHT_DECLS_BEGIN struct _HT_Timeline HT_Timeline
Definition: timeline.h:22
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
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.
HT_API HT_ErrorCode ht_registry_register_feature(uint32_t feature_id, HT_FeatureDisableCallback disable_callback)
Registers new a new feature in the system.
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
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.