projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
action-executor: consider action firing policy on action execution
[lttng-tools.git]
/
src
/
common
/
actions
/
group.c
diff --git
a/src/common/actions/group.c
b/src/common/actions/group.c
index 4ac239c9d62c14f43c7b2ddf0623c5e901aeaf5d..afb832ee646a766b40142f87eae385eb178b7fa4 100644
(file)
--- a/
src/common/actions/group.c
+++ b/
src/common/actions/group.c
@@
-266,8
+266,8
@@
struct lttng_action *lttng_action_group_create(void)
lttng_action_init(action, LTTNG_ACTION_TYPE_GROUP,
lttng_action_group_validate,
lttng_action_group_serialize,
lttng_action_init(action, LTTNG_ACTION_TYPE_GROUP,
lttng_action_group_validate,
lttng_action_group_serialize,
- lttng_action_group_is_equal,
-
lttng_action_group_destroy
);
+ lttng_action_group_is_equal,
lttng_action_group_destroy,
+
NULL
);
lttng_dynamic_pointer_array_init(&action_group->actions,
destroy_lttng_action_group_element);
lttng_dynamic_pointer_array_init(&action_group->actions,
destroy_lttng_action_group_element);
@@
-333,10
+333,17
@@
end:
const struct lttng_action *lttng_action_group_get_at_index(
const struct lttng_action *group, unsigned int index)
const struct lttng_action *lttng_action_group_get_at_index(
const struct lttng_action *group, unsigned int index)
+{
+ return lttng_action_group_borrow_mutable_at_index(group, index);
+}
+
+LTTNG_HIDDEN
+struct lttng_action *lttng_action_group_borrow_mutable_at_index(
+ const struct lttng_action *group, unsigned int index)
{
unsigned int count;
const struct lttng_action_group *action_group;
{
unsigned int count;
const struct lttng_action_group *action_group;
-
const struct lttng_action *
action = NULL;
+
struct lttng_action *
action = NULL;
if (lttng_action_group_get_count(group, &count) !=
LTTNG_ACTION_STATUS_OK) {
if (lttng_action_group_get_count(group, &count) !=
LTTNG_ACTION_STATUS_OK) {
This page took
0.024664 seconds
and
4
git commands to generate.