HawkTracer  0.10.0
event_id_provider.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_EVENT_ID_PROVIDER_H
2 #define HAWKTRACER_EVENT_ID_PROVIDER_H
3 
5 
7 
13 typedef struct _HT_EventIdProvider HT_EventIdProvider;
14 
23 
30 
36 
45 
47 
48 #endif /* HAWKTRACER_EVENT_ID_PROVIDER_H */
#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_API HT_EventIdProvider * ht_event_id_provider_get_default(void)
Gets default provider.
uint64_t HT_EventId
An unsigned integer used for event identifiers.
Definition: base_types.h:16
typedefHT_DECLS_BEGIN struct _HT_EventIdProvider HT_EventIdProvider
HT_EventIdProvider is a sequence number generator.
Definition: event_id_provider.h:13
#define HT_DECLS_BEGIN
Defines a beginning of C linkage block.
Definition: macros.h:16
HT_API void ht_event_id_provider_destroy(HT_EventIdProvider *provider)
Destroys a provider.
HT_API HT_EventId ht_event_id_provider_next(HT_EventIdProvider *provider)
Gets next identifier.
HT_API HT_EventIdProvider * ht_event_id_provider_create(void)
Creates a new instance of an ID provider.