Remove extern "C" from internal headers
[lttng-tools.git] / include / lttng / notification / notification-internal.h
1 /*
2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_NOTIFICATION_INTERNAL_H
9 #define LTTNG_NOTIFICATION_INTERNAL_H
10
11 #include <lttng/notification/notification.h>
12 #include <common/macros.h>
13 #include <stdint.h>
14 #include <stdbool.h>
15 #include <sys/types.h>
16
17 struct lttng_payload;
18 struct lttng_payload_view;
19
20 struct lttng_notification {
21 struct lttng_trigger *trigger;
22 struct lttng_evaluation *evaluation;
23 };
24
25 struct lttng_notification_comm {
26 /* Size of the payload following this field. */
27 uint32_t length;
28 /* Trigger and evaluation objects follow. */
29 char payload[];
30 } LTTNG_PACKED;
31
32 struct lttng_notification *lttng_notification_create(
33 struct lttng_trigger *trigger,
34 struct lttng_evaluation *evaluation);
35
36 int lttng_notification_serialize(const struct lttng_notification *notification,
37 struct lttng_payload *payload);
38
39 ssize_t lttng_notification_create_from_payload(
40 struct lttng_payload_view *view,
41 struct lttng_notification **notification);
42
43 #endif /* LTTNG_NOTIFICATION_INTERNAL_H */
This page took 0.029192 seconds and 4 git commands to generate.