lib: rename plural file names to singular
[babeltrace.git] / plugins / utils / trimmer / iterator.c
index 0ea086e44307a94794265cb99aa13da860870a92..29e9951b0f121c7f6ec8f22a6a310b79ce3582e2 100644 (file)
@@ -137,7 +137,7 @@ int update_lazy_bound(struct trimmer_bound *bound, const char *name,
                }
                tm.tm_sec = bound->lazy_values.ss;
                tm.tm_min = bound->lazy_values.mm;
-               tm.tm_hour = bound->lazy_values.hh;
+               tm.tm_hour = bound->lazy_value.hh;
                timeval = bt_timegm(&tm);
                if (timeval < 0) {
                        BT_LOGE("Failure in bt_timegm(), incorrectly formatted %s timestamp",
@@ -152,7 +152,7 @@ int update_lazy_bound(struct trimmer_bound *bound, const char *name,
                }
                tm.tm_sec = bound->lazy_values.ss;
                tm.tm_min = bound->lazy_values.mm;
-               tm.tm_hour = bound->lazy_values.hh;
+               tm.tm_hour = bound->lazy_value.hh;
                timeval = mktime(&tm);
                if (timeval < 0) {
                        BT_LOGE("Failure in mktime(), incorrectly formatted %s timestamp",
@@ -392,8 +392,8 @@ const struct bt_notification *evaluate_packet_notification(
        bool lazy_update = false;
 
         switch (bt_notification_get_type(notification)) {
-       case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
-               packet = bt_notification_packet_begin_get_packet(notification);
+       case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
+               packet = bt_notification_packet_beginning_get_packet(notification);
                BT_ASSERT(packet);
                writer_packet = trimmer_new_packet(trim_it, packet);
                BT_ASSERT(writer_packet);
@@ -479,8 +479,8 @@ const struct bt_notification *evaluate_packet_notification(
 
 end:
         switch (bt_notification_get_type(notification)) {
-       case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
-               new_notification = bt_notification_packet_begin_create(writer_packet);
+       case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
+               new_notification = bt_notification_packet_beginning_create(writer_packet);
                BT_ASSERT(new_notification);
                break;
        case BT_NOTIFICATION_TYPE_PACKET_END:
@@ -533,7 +533,7 @@ enum bt_notification_iterator_status evaluate_notification(
                new_notification = evaluate_event_notification(*notification,
                                trim_it, begin, end, in_range, &finished);
                break;
-       case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
+       case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
        case BT_NOTIFICATION_TYPE_PACKET_END:
                new_notification = evaluate_packet_notification(*notification,
                                trim_it, begin, end, in_range, &finished);
This page took 0.024008 seconds and 4 git commands to generate.