lib: remove CTF concepts of packet and event headers
[babeltrace.git] / include / babeltrace / trace-ir / event-const.h
index 06daede82fbdc719d99769d4aaf8549ba1daf878..1199c40a71aa4ef2bb745261f6e7516d1ae90984 100644 (file)
  * 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;
-
-extern const struct bt_event_class *bt_event_borrow_class_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_packet *bt_event_borrow_packet_const(
-               const struct bt_event *event);
+extern const bt_event_class *bt_event_borrow_class_const(
+               const bt_event *event);
 
-extern const struct bt_stream *bt_event_borrow_stream_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_header_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_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
 }
This page took 0.024932 seconds and 4 git commands to generate.