lib: add aliases for Babeltrace enumeration types
[babeltrace.git] / include / babeltrace / trace-ir / event-const.h
index 680e459fb09658ac448e6498f67c68c5a1fb2f3a..3fafc484f824a0f8a68ce26140105ecc5c21be00 100644 (file)
@@ -27,7 +27,7 @@
  * http://www.efficios.com/ctf
  */
 
-/* For enum bt_clock_snapshot_state */
+/* 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 */
 extern "C" {
 #endif
 
-enum bt_event_status {
+typedef enum bt_event_status {
        BT_EVENT_STATUS_OK = 0,
        BT_EVENT_STATUS_NOMEM = -12,
-};
+} bt_event_status;
 
 extern const bt_event_class *bt_event_borrow_class_const(
                const bt_event *event);
@@ -63,7 +63,7 @@ extern const bt_field *bt_event_borrow_specific_context_field_const(
 extern const bt_field *bt_event_borrow_payload_field_const(
                const bt_event *event);
 
-extern enum bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
+extern bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
                const bt_event *event,
                const bt_clock_snapshot **clock_snapshot);
 
This page took 0.022908 seconds and 4 git commands to generate.