cb628ad8a9e90b7b9ddfc9a178800de5e0f6fe49
[lttng-ust.git] / include / ust-dynamic-type.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _LTTNG_UST_DYNAMIC_TYPE_H
8 #define _LTTNG_UST_DYNAMIC_TYPE_H
9
10 #include <lttng/ust-events.h>
11
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,
26 };
27
28 __attribute__((visibility("hidden")))
29 int lttng_ust_dynamic_type_choices(size_t *nr_choices,
30 const struct lttng_ust_event_field ***choices);
31
32 __attribute__((visibility("hidden")))
33 const struct lttng_ust_event_field *lttng_ust_dynamic_type_field(int64_t value);
34
35 __attribute__((visibility("hidden")))
36 const struct lttng_ust_event_field *lttng_ust_dynamic_type_tag_field(void);
37
38 #endif /* _LTTNG_UST_DYNAMIC_TYPE_H */
This page took 0.028851 seconds and 3 git commands to generate.