MI: implement all objects related to trigger machine interface
[lttng-tools.git] / include / lttng / action / list-internal.h
CommitLineData
0c51e8f3
SM
1/*
2 * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
702f26c8
JR
8#ifndef LTTNG_ACTION_LIST_INTERNAL_H
9#define LTTNG_ACTION_LIST_INTERNAL_H
0c51e8f3
SM
10
11#include <sys/types.h>
12
13#include <common/macros.h>
14
15struct lttng_action;
16struct lttng_payload_view;
6a751b95
JR
17struct mi_writer;
18struct mi_lttng_error_query_callbacks;
19struct lttng_dynamic_array;
20struct lttng_trigger;
0c51e8f3
SM
21
22/*
702f26c8 23 * Create an action list from a payload view.
0c51e8f3
SM
24 *
25 * On success, return the number of bytes consumed from `view`, and the created
a8940c5e 26 * list in `*list`. On failure, return -1.
0c51e8f3
SM
27 */
28LTTNG_HIDDEN
702f26c8 29extern ssize_t lttng_action_list_create_from_payload(
0c51e8f3 30 struct lttng_payload_view *view,
a8940c5e 31 struct lttng_action **list);
0c51e8f3 32
2d57482c 33LTTNG_HIDDEN
702f26c8 34extern struct lttng_action *lttng_action_list_borrow_mutable_at_index(
a8940c5e 35 const struct lttng_action *list, unsigned int index);
2d57482c 36
6a751b95
JR
37LTTNG_HIDDEN
38enum lttng_error_code lttng_action_list_mi_serialize(const struct lttng_trigger *trigger,
39 const struct lttng_action *action,
40 struct mi_writer *writer,
41 const struct mi_lttng_error_query_callbacks
42 *error_query_callbacks,
43 struct lttng_dynamic_array *action_path_indexes);
44
702f26c8 45#endif /* LTTNG_ACTION_LIST_INTERNAL_H */
This page took 0.026382 seconds and 4 git commands to generate.