vendor: fmtlib: Upgrade fmtlib to 9.1.0
[lttng-tools.git] / include / lttng / notification / notification-internal.hpp
CommitLineData
a58c490f 1/*
ab5be9fa 2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
a58c490f 3 *
ab5be9fa 4 * SPDX-License-Identifier: LGPL-2.1-only
a58c490f 5 *
a58c490f
JG
6 */
7
8#ifndef LTTNG_NOTIFICATION_INTERNAL_H
9#define LTTNG_NOTIFICATION_INTERNAL_H
10
11#include <lttng/notification/notification.h>
c9e313bc 12#include <common/macros.hpp>
a58c490f
JG
13#include <stdint.h>
14#include <stdbool.h>
72756a3f 15#include <sys/types.h>
a58c490f 16
c0a66c84
JG
17struct lttng_payload;
18struct lttng_payload_view;
19
a58c490f 20struct lttng_notification {
52d55cf9 21 struct lttng_trigger *trigger;
a58c490f 22 struct lttng_evaluation *evaluation;
a58c490f
JG
23};
24
25struct lttng_notification_comm {
26 /* Size of the payload following this field. */
27 uint32_t length;
52d55cf9 28 /* Trigger and evaluation objects follow. */
a58c490f
JG
29 char payload[];
30} LTTNG_PACKED;
31
a58c490f 32struct lttng_notification *lttng_notification_create(
52d55cf9 33 struct lttng_trigger *trigger,
a58c490f
JG
34 struct lttng_evaluation *evaluation);
35
9b63a4aa 36int lttng_notification_serialize(const struct lttng_notification *notification,
c0a66c84 37 struct lttng_payload *payload);
a58c490f 38
c0a66c84
JG
39ssize_t lttng_notification_create_from_payload(
40 struct lttng_payload_view *view,
a58c490f
JG
41 struct lttng_notification **notification);
42
c08136a3
JG
43const struct lttng_condition *lttng_notification_get_const_condition(
44 const struct lttng_notification *notification);
45const struct lttng_evaluation *lttng_notification_get_const_evaluation(
46 const struct lttng_notification *notification);
47
48const struct lttng_trigger *lttng_notification_get_const_trigger(
49 const struct lttng_notification *notification);
50
a58c490f 51#endif /* LTTNG_NOTIFICATION_INTERNAL_H */
This page took 0.051629 seconds and 4 git commands to generate.