2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_TRIGGER_INTERNAL_H
9 #define LTTNG_TRIGGER_INTERNAL_H
11 #include <lttng/trigger/trigger.h>
12 #include <common/macros.h>
15 #include <sys/types.h>
18 struct lttng_payload_view
;
20 struct lttng_trigger
{
21 struct lttng_condition
*condition
;
22 struct lttng_action
*action
;
25 struct lttng_trigger_comm
{
26 /* length excludes its own length. */
28 /* A condition and action object follow. */
33 ssize_t
lttng_trigger_create_from_payload(struct lttng_payload_view
*view
,
34 struct lttng_trigger
**trigger
);
37 int lttng_trigger_serialize(struct lttng_trigger
*trigger
,
38 struct lttng_payload
*payload
);
41 const struct lttng_condition
*lttng_trigger_get_const_condition(
42 const struct lttng_trigger
*trigger
);
45 const struct lttng_action
*lttng_trigger_get_const_action(
46 const struct lttng_trigger
*trigger
);
49 bool lttng_trigger_validate(struct lttng_trigger
*trigger
);
51 #endif /* LTTNG_TRIGGER_INTERNAL_H */
This page took 0.033504 seconds and 4 git commands to generate.