Refactoring: add back constness of public API structures
[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 int lttng_ust_dynamic_type_choices(size_t *nr_choices,
29 const struct lttng_ust_event_field ***choices)
30 __attribute__((visibility("hidden")));
31
32 const struct lttng_ust_event_field *lttng_ust_dynamic_type_field(int64_t value)
33 __attribute__((visibility("hidden")));
34
35 const struct lttng_ust_event_field *lttng_ust_dynamic_type_tag_field(void)
36 __attribute__((visibility("hidden")));
37
38 #endif /* _LTTNG_UST_DYNAMIC_TYPE_H */
This page took 0.033032 seconds and 4 git commands to generate.