error-query: add lttng_action_path to express the location of an action
[lttng-tools.git] / include / lttng / action / path-internal.h
1 /*
2 * Copyright (C) 2021 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_ACTION_PATH_INTERNAL_H
9 #define LTTNG_ACTION_PATH_INTERNAL_H
10
11 #include <lttng/action/path.h>
12 #include <common/macros.h>
13 #include <common/dynamic-array.h>
14 #include <common/payload-view.h>
15 #include <common/payload.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 struct lttng_action_path {
22 struct lttng_dynamic_array indexes;
23 };
24
25 /* Assumes that 'dst' is uninitialized. */
26 LTTNG_HIDDEN
27 int lttng_action_path_copy(const struct lttng_action_path *src,
28 struct lttng_action_path *dst);
29
30 LTTNG_HIDDEN
31 ssize_t lttng_action_path_create_from_payload(
32 struct lttng_payload_view *view,
33 struct lttng_action_path **action_path);
34
35 LTTNG_HIDDEN
36 int lttng_action_path_serialize(const struct lttng_action_path *action_path,
37 struct lttng_payload *payload);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* LTTNG_ACTION_PATH_INTERNAL_H */
This page took 0.031062 seconds and 5 git commands to generate.