lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / trace-ir / event-const.h
index 7ee70dbb192d24981a517f950fb82121a9057656..00dff658148d3969fd0101646663125eb98bca0d 100644 (file)
@@ -2,10 +2,9 @@
 #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_event, 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;
-
-extern const struct bt_event_class *bt_event_borrow_class_const(
-               const struct bt_event *event);
-
-extern const struct bt_packet *bt_event_borrow_packet_const(
-               const struct bt_event *event);
+typedef enum bt_event_status {
+       BT_EVENT_STATUS_OK = 0,
+       BT_EVENT_STATUS_NOMEM = -12,
+} bt_event_status;
 
-extern const struct bt_stream *bt_event_borrow_stream_const(
-               const struct bt_event *event);
+extern const bt_event_class *bt_event_borrow_class_const(
+               const bt_event *event);
 
-extern const struct bt_field *bt_event_borrow_header_field_const(
-               const struct bt_event *event);
+extern const bt_packet *bt_event_borrow_packet_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_stream *bt_event_borrow_stream_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_common_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_specific_context_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 const bt_field *bt_event_borrow_payload_field_const(
+               const bt_event *event);
 
 #ifdef __cplusplus
 }
This page took 0.024924 seconds and 4 git commands to generate.