bin: compile lttng-sessiond as C++
[lttng-tools.git] / include / lttng / action / list-internal.h
1 /*
2 * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_ACTION_LIST_INTERNAL_H
9 #define LTTNG_ACTION_LIST_INTERNAL_H
10
11 #include <sys/types.h>
12
13 #include <common/macros.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 struct lttng_action;
20 struct lttng_payload_view;
21 struct mi_writer;
22 struct mi_lttng_error_query_callbacks;
23 struct lttng_dynamic_array;
24 struct lttng_trigger;
25
26 /*
27 * Create an action list from a payload view.
28 *
29 * On success, return the number of bytes consumed from `view`, and the created
30 * list in `*list`. On failure, return -1.
31 */
32 extern ssize_t lttng_action_list_create_from_payload(
33 struct lttng_payload_view *view,
34 struct lttng_action **list);
35
36 extern struct lttng_action *lttng_action_list_borrow_mutable_at_index(
37 const struct lttng_action *list, unsigned int index);
38
39 enum lttng_error_code lttng_action_list_mi_serialize(const struct lttng_trigger *trigger,
40 const struct lttng_action *action,
41 struct mi_writer *writer,
42 const struct mi_lttng_error_query_callbacks
43 *error_query_callbacks,
44 struct lttng_dynamic_array *action_path_indexes);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* LTTNG_ACTION_LIST_INTERNAL_H */
This page took 0.029182 seconds and 4 git commands to generate.