X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgraph%2Fnotification%2Fevent.c;h=8e5d672493d8482f41a34d6ba96d90483d7a2e8e;hb=c55a9f585da53ea54ac458155fac3cdec1779d47;hp=8d9d6f3da9a26c4bba7205ab2de330c1e2a6740f;hpb=69b772a4f25fc4512abc877662a8c19e404b452c;p=babeltrace.git diff --git a/lib/graph/notification/event.c b/lib/graph/notification/event.c index 8d9d6f3d..8e5d6724 100644 --- a/lib/graph/notification/event.c +++ b/lib/graph/notification/event.c @@ -33,6 +33,7 @@ #include #include #include +#include static void bt_notification_event_destroy(struct bt_object *obj) @@ -46,7 +47,7 @@ void bt_notification_event_destroy(struct bt_object *obj) } static -bool validate_clock_classes(struct bt_notification_event *notif) +bt_bool validate_clock_classes(struct bt_notification_event *notif) { /* * For each clock class found in the notification's clock class @@ -54,7 +55,7 @@ bool validate_clock_classes(struct bt_notification_event *notif) * this clock class. Also make sure that those clock classes * are part of the trace to which the event belongs. */ - bool is_valid = true; + bt_bool is_valid = BT_TRUE; int trace_cc_count; int cc_prio_map_cc_count; size_t cc_prio_map_cc_i, trace_cc_i; @@ -81,13 +82,13 @@ bool validate_clock_classes(struct bt_notification_event *notif) bt_clock_class_priority_map_get_clock_class_by_index( notif->cc_prio_map, cc_prio_map_cc_i); struct bt_ctf_clock_value *clock_value; - bool found_in_trace = false; + bt_bool found_in_trace = BT_FALSE; assert(clock_class); clock_value = bt_ctf_event_get_clock_value(notif->event, clock_class); if (!clock_value) { - is_valid = false; + is_valid = BT_FALSE; goto end; } @@ -102,7 +103,7 @@ bool validate_clock_classes(struct bt_notification_event *notif) assert(trace_clock_class); if (trace_clock_class == clock_class) { - found_in_trace = true; + found_in_trace = BT_TRUE; break; } } @@ -110,7 +111,7 @@ bool validate_clock_classes(struct bt_notification_event *notif) bt_put(clock_class); if (!found_in_trace) { - is_valid = false; + is_valid = BT_FALSE; goto end; } }