2 * Copyright (C) 2019 EfficiOS, inc.
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, version 2.1 only,
6 * as published by the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef LTTNG_ACTION_GROUP_H
19 #define LTTNG_ACTION_GROUP_H
22 struct lttng_action_group
;
29 * Create a newly allocated action group object.
31 * Returns a new action group on success, NULL on failure. This action group
32 * must be destroyed using lttng_action_group_destroy().
34 extern struct lttng_action
*lttng_action_group_create(void);
37 * Add an action to an lttng_action object of type LTTNG_ACTION_GROUP.
39 * The group takes ownership of the action.
41 extern enum lttng_action_status
lttng_action_group_add_action(
42 struct lttng_action
*group
, struct lttng_action
*action
);
44 extern enum lttng_action_status
lttng_action_group_get_count(
45 const struct lttng_action
*group
, unsigned int *count
);
47 extern const struct lttng_action
*lttng_action_group_get_at_index_const(
48 const struct lttng_action
*group
,
55 #endif /* LTTNG_ACTION_GROUP_H */
This page took 0.032322 seconds and 5 git commands to generate.