Event API: use status
[babeltrace.git] / lib / trace-ir / event.c
index 1b3a085f494fb27e2bbb3d301ea78b0c94e33a7a..f63bd309965ed1e45f03de914fd70e7ea753632b 100644 (file)
@@ -349,14 +349,14 @@ void bt_event_set_default_clock_snapshot(struct bt_event *event,
                "value=%" PRIu64, event, value_cycles);
 }
 
-enum bt_clock_snapshot_status bt_event_borrow_default_clock_snapshot_const(
+enum bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
                const struct bt_event *event,
                const struct bt_clock_snapshot **clock_snapshot)
 {
        BT_ASSERT_PRE_NON_NULL(event, "Event");
        BT_ASSERT_PRE_NON_NULL(clock_snapshot, "Clock snapshot (output)");
        *clock_snapshot = event->default_cs;
-       return BT_CLOCK_SNAPSHOT_STATUS_KNOWN;
+       return BT_CLOCK_SNAPSHOT_STATE_KNOWN;
 }
 
 struct bt_packet *bt_event_borrow_packet(struct bt_event *event)
@@ -371,7 +371,7 @@ const struct bt_packet *bt_event_borrow_packet_const(
        return bt_event_borrow_packet((void *) event);
 }
 
-int bt_event_move_header_field(struct bt_event *event,
+enum bt_event_status bt_event_move_header_field(struct bt_event *event,
                struct bt_event_header_field *header_field)
 {
        struct bt_stream_class *stream_class;
@@ -391,5 +391,5 @@ int bt_event_move_header_field(struct bt_event *event,
 
        /* Move new field */
        event->header_field = field_wrapper;
-       return 0;
+       return BT_EVENT_STATUS_OK;
 }
This page took 0.02426 seconds and 4 git commands to generate.