#define BABELTRACE_TRACE_IR_EVENT_CONST_H
/*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* http://www.efficios.com/ctf
*/
-/* For enum bt_clock_value_status */
-#include <babeltrace/trace-ir/clock-value-const.h>
+/* For bt_clock_snapshot_state */
+#include <babeltrace/trace-ir/clock-snapshot-const.h>
+
+/* For bt_event, bt_clock_snapshot, bt_event_class, bt_field, bt_packet */
+#include <babeltrace/types.h>
#ifdef __cplusplus
extern "C" {
#endif
-struct bt_event;
-struct bt_clock_value;
-struct bt_event_class;
-struct bt_field;
-struct bt_packet;
+typedef enum bt_event_status {
+ BT_EVENT_STATUS_OK = 0,
+ BT_EVENT_STATUS_NOMEM = -12,
+} bt_event_status;
-extern const struct bt_event_class *bt_event_borrow_class_const(
- const struct bt_event *event);
+extern const bt_event_class *bt_event_borrow_class_const(
+ const bt_event *event);
-extern const struct bt_packet *bt_event_borrow_packet_const(
- const struct bt_event *event);
+extern const bt_packet *bt_event_borrow_packet_const(
+ const bt_event *event);
-extern const struct bt_stream *bt_event_borrow_stream_const(
- const struct bt_event *event);
+extern const bt_stream *bt_event_borrow_stream_const(
+ const bt_event *event);
-extern const struct bt_field *bt_event_borrow_header_field_const(
- const struct bt_event *event);
+extern const bt_field *bt_event_borrow_header_field_const(
+ const bt_event *event);
-extern const struct bt_field *bt_event_borrow_common_context_field_const(
- const struct bt_event *event);
+extern const bt_field *bt_event_borrow_common_context_field_const(
+ const bt_event *event);
-extern const struct bt_field *bt_event_borrow_specific_context_field_const(
- const struct bt_event *event);
+extern const bt_field *bt_event_borrow_specific_context_field_const(
+ const bt_event *event);
-extern const struct bt_field *bt_event_borrow_payload_field_const(
- const struct bt_event *event);
+extern const bt_field *bt_event_borrow_payload_field_const(
+ const bt_event *event);
-extern enum bt_clock_value_status bt_event_borrow_default_clock_value_const(
- const struct bt_event *event,
- const struct bt_clock_value **clock_value);
+extern bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
+ const bt_event *event,
+ const bt_clock_snapshot **clock_snapshot);
#ifdef __cplusplus
}