Cleanup: ust-app: simplify ust_app_synchronize() error paths
[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;
17
18/*
702f26c8 19 * Create an action list from a payload view.
0c51e8f3
SM
20 *
21 * On success, return the number of bytes consumed from `view`, and the created
22 * group in `*group`. On failure, return -1.
23 */
24LTTNG_HIDDEN
702f26c8 25extern ssize_t lttng_action_list_create_from_payload(
0c51e8f3
SM
26 struct lttng_payload_view *view,
27 struct lttng_action **group);
28
2d57482c 29LTTNG_HIDDEN
702f26c8 30extern struct lttng_action *lttng_action_list_borrow_mutable_at_index(
2d57482c
JR
31 const struct lttng_action *group, unsigned int index);
32
702f26c8 33#endif /* LTTNG_ACTION_LIST_INTERNAL_H */
This page took 0.025623 seconds and 4 git commands to generate.