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