X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Faction%2Fpath-internal.h;fp=include%2Flttng%2Faction%2Fpath-internal.h;h=23f87ef9bbe769790e840312f984a5209f11bb78;hb=27993cc2e9edb3f5a59bc2c16439e063462235e5;hp=0000000000000000000000000000000000000000;hpb=202486fa276e34e4c81d560bfd8897824c51af8c;p=lttng-tools.git diff --git a/include/lttng/action/path-internal.h b/include/lttng/action/path-internal.h new file mode 100644 index 000000000..23f87ef9b --- /dev/null +++ b/include/lttng/action/path-internal.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2021 Jérémie Galarneau + * + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + +#ifndef LTTNG_ACTION_PATH_INTERNAL_H +#define LTTNG_ACTION_PATH_INTERNAL_H + +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct lttng_action_path { + struct lttng_dynamic_array indexes; +}; + +/* Assumes that 'dst' is uninitialized. */ +LTTNG_HIDDEN +int lttng_action_path_copy(const struct lttng_action_path *src, + struct lttng_action_path *dst); + +LTTNG_HIDDEN +ssize_t lttng_action_path_create_from_payload( + struct lttng_payload_view *view, + struct lttng_action_path **action_path); + +LTTNG_HIDDEN +int lttng_action_path_serialize(const struct lttng_action_path *action_path, + struct lttng_payload *payload); + +#ifdef __cplusplus +} +#endif + +#endif /* LTTNG_ACTION_PATH_INTERNAL_H */