2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #ifndef _LTTNG_UST_DYNAMIC_TYPE_H
8 #define _LTTNG_UST_DYNAMIC_TYPE_H
10 #include <lttng/ust-events.h>
12 enum lttng_ust_dynamic_type
{
13 LTTNG_UST_DYNAMIC_TYPE_NONE
,
14 LTTNG_UST_DYNAMIC_TYPE_S8
,
15 LTTNG_UST_DYNAMIC_TYPE_S16
,
16 LTTNG_UST_DYNAMIC_TYPE_S32
,
17 LTTNG_UST_DYNAMIC_TYPE_S64
,
18 LTTNG_UST_DYNAMIC_TYPE_U8
,
19 LTTNG_UST_DYNAMIC_TYPE_U16
,
20 LTTNG_UST_DYNAMIC_TYPE_U32
,
21 LTTNG_UST_DYNAMIC_TYPE_U64
,
22 LTTNG_UST_DYNAMIC_TYPE_FLOAT
,
23 LTTNG_UST_DYNAMIC_TYPE_DOUBLE
,
24 LTTNG_UST_DYNAMIC_TYPE_STRING
,
25 _NR_LTTNG_UST_DYNAMIC_TYPES
,
28 int lttng_ust_dynamic_type_choices(size_t *nr_choices
,
29 const struct lttng_ust_event_field
***choices
)
30 __attribute__((visibility("hidden")));
32 const struct lttng_ust_event_field
*lttng_ust_dynamic_type_field(int64_t value
)
33 __attribute__((visibility("hidden")));
35 const struct lttng_ust_event_field
*lttng_ust_dynamic_type_tag_field(void)
36 __attribute__((visibility("hidden")));
38 #endif /* _LTTNG_UST_DYNAMIC_TYPE_H */