Commit | Line | Data |
---|---|---|
27993cc2 JG |
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> | |
c9e313bc SM |
12 | #include <common/macros.hpp> |
13 | #include <common/dynamic-array.hpp> | |
14 | #include <common/payload-view.hpp> | |
15 | #include <common/payload.hpp> | |
040dd1ee | 16 | #include <sys/types.h> |
27993cc2 | 17 | |
27993cc2 JG |
18 | struct lttng_action_path { |
19 | struct lttng_dynamic_array indexes; | |
20 | }; | |
21 | ||
22 | /* Assumes that 'dst' is uninitialized. */ | |
27993cc2 JG |
23 | int lttng_action_path_copy(const struct lttng_action_path *src, |
24 | struct lttng_action_path *dst); | |
25 | ||
27993cc2 JG |
26 | ssize_t lttng_action_path_create_from_payload( |
27 | struct lttng_payload_view *view, | |
28 | struct lttng_action_path **action_path); | |
29 | ||
27993cc2 JG |
30 | int lttng_action_path_serialize(const struct lttng_action_path *action_path, |
31 | struct lttng_payload *payload); | |
32 | ||
27993cc2 | 33 | #endif /* LTTNG_ACTION_PATH_INTERNAL_H */ |