X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Fevent-const.h;h=3fafc484f824a0f8a68ce26140105ecc5c21be00;hb=4cdfc5e86b64137d96c31495cbdea99801714c2b;hp=680e459fb09658ac448e6498f67c68c5a1fb2f3a;hpb=a21d1cb8acfbed4d36ab6e74eefe64305d7587ef;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/event-const.h b/include/babeltrace/trace-ir/event-const.h index 680e459f..3fafc484 100644 --- a/include/babeltrace/trace-ir/event-const.h +++ b/include/babeltrace/trace-ir/event-const.h @@ -27,7 +27,7 @@ * http://www.efficios.com/ctf */ -/* For enum bt_clock_snapshot_state */ +/* For bt_clock_snapshot_state */ #include /* For bt_event, bt_clock_snapshot, bt_event_class, bt_field, bt_packet */ @@ -37,10 +37,10 @@ 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);