2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_NOTIFICATION_INTERNAL_H
9 #define LTTNG_NOTIFICATION_INTERNAL_H
11 #include <lttng/notification/notification.h>
12 #include <common/macros.h>
15 #include <sys/types.h>
18 struct lttng_payload_view
;
20 struct lttng_notification
{
21 struct lttng_condition
*condition
;
22 struct lttng_evaluation
*evaluation
;
25 struct lttng_notification_comm
{
26 /* Size of the payload following this field. */
28 /* Condition and evaluation objects follow. */
33 struct lttng_notification
*lttng_notification_create(
34 struct lttng_condition
*condition
,
35 struct lttng_evaluation
*evaluation
);
38 int lttng_notification_serialize(const struct lttng_notification
*notification
,
39 struct lttng_payload
*payload
);
42 ssize_t
lttng_notification_create_from_payload(
43 struct lttng_payload_view
*view
,
44 struct lttng_notification
**notification
);
46 #endif /* LTTNG_NOTIFICATION_INTERNAL_H */
This page took 0.031933 seconds and 5 git commands to generate.