Move to kernel style SPDX license identifiers
[babeltrace.git] / src / lib / graph / message / event.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 */
7
8 #ifndef BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H
9 #define BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H
10
11 #include "compat/compiler.h"
12 #include <babeltrace2/trace-ir/event-class.h>
13 #include <babeltrace2/trace-ir/event.h>
14 #include "common/assert.h"
15 #include "common/macros.h"
16
17 #include "message.h"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct bt_message_event {
24 struct bt_message parent;
25 struct bt_event *event;
26 struct bt_clock_snapshot *default_cs;
27 };
28
29 BT_HIDDEN
30 struct bt_message *bt_message_event_new(struct bt_graph *graph);
31
32 BT_HIDDEN
33 void bt_message_event_recycle(struct bt_message *msg);
34
35 BT_HIDDEN
36 void bt_message_event_destroy(struct bt_message *msg);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif /* BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H */
This page took 0.03096 seconds and 4 git commands to generate.