LTTng control library C API
Loading...
Searching...
No Matches
list.h
1/*
2 * SPDX-FileCopyrightText: 2019 Simon Marchi <simon.marchi@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_ACTION_LIST_H
9#define LTTNG_ACTION_LIST_H
10
11#include <lttng/lttng-export.h>
12
13struct lttng_action;
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
36LTTNG_EXPORT extern struct lttng_action *lttng_action_list_create(void);
37
62LTTNG_EXPORT extern enum lttng_action_status
63lttng_action_list_add_action(struct lttng_action *action_list, struct lttng_action *action);
64
90LTTNG_EXPORT extern enum lttng_action_status
91lttng_action_list_get_count(const struct lttng_action *action_list, unsigned int *count);
92
125LTTNG_EXPORT extern const struct lttng_action *
126lttng_action_list_get_at_index(const struct lttng_action *action_list, unsigned int index);
127
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif /* LTTNG_ACTION_LIST_H */
struct lttng_action * lttng_action_list_create(void)
Creates an empty trigger action list.
enum lttng_action_status lttng_action_list_add_action(struct lttng_action *action_list, struct lttng_action *action)
Appends the trigger action action to the action list action_list.
const struct lttng_action * lttng_action_list_get_at_index(const struct lttng_action *action_list, unsigned int index)
Returns the trigger action of the trigger action list action_list at the index index.
enum lttng_action_status lttng_action_list_get_count(const struct lttng_action *action_list, unsigned int *count)
Sets *count to the number of trigger actions contained in the action list action_list.
lttng_action_status
Return type of trigger action API functions.
Definition action.h:61