| 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 | |
| 15 | #include "message.h" |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | struct bt_message_event { |
| 22 | struct bt_message parent; |
| 23 | struct bt_event *event; |
| 24 | struct bt_clock_snapshot *default_cs; |
| 25 | }; |
| 26 | |
| 27 | struct bt_message *bt_message_event_new(struct bt_graph *graph); |
| 28 | |
| 29 | void bt_message_event_recycle(struct bt_message *msg); |
| 30 | |
| 31 | void bt_message_event_destroy(struct bt_message *msg); |
| 32 | |
| 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |
| 36 | |
| 37 | #endif /* BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H */ |