Implement ctf.lttng-live component
[babeltrace.git] / lib / graph / iterator.c
index 36098200d2213527075857f902ad9295d919d772..1b1862bd1b87d4299c98ed60c2cb1c94da3db11a 100644 (file)
@@ -1127,7 +1127,7 @@ int enqueue_notification_and_automatic(
                break;
        case BT_NOTIFICATION_TYPE_INACTIVITY:
                /* Always valid */
-               break;
+               goto handle_notif;
        default:
                /*
                 * Invalid type of notification. Only the notification
@@ -1155,6 +1155,7 @@ int enqueue_notification_and_automatic(
                goto error;
        }
 
+handle_notif:
        switch (notif->type) {
        case BT_NOTIFICATION_TYPE_EVENT:
                ret = handle_notif_event(iterator, notif, notif_stream,
@@ -1174,6 +1175,9 @@ int enqueue_notification_and_automatic(
                ret = handle_notif_packet_end(iterator, notif, notif_stream,
                        notif_packet);
                break;
+       case BT_NOTIFICATION_TYPE_INACTIVITY:
+               add_action_push_notif(iterator, notif);
+               break;
        default:
                break;
        }
This page took 0.024441 seconds and 4 git commands to generate.