Subscribe to notifications when creating a notif. iterator
[babeltrace.git] / plugins / text / pretty / pretty.c
index cea5fe688f080511e9b5c63903f020864380f86c..043ba4fc5d265a5123a269fdedc6a81b0fc4a9cb 100644 (file)
@@ -145,6 +145,10 @@ void pretty_port_connected(
 {
        struct bt_private_connection *connection;
        struct pretty_component *pretty;
+       static const enum bt_notification_type notif_types[] = {
+               BT_NOTIFICATION_TYPE_EVENT,
+               BT_NOTIFICATION_TYPE_SENTINEL,
+       };
 
        pretty = bt_private_component_get_user_data(component);
        assert(pretty);
@@ -152,7 +156,8 @@ void pretty_port_connected(
        connection = bt_private_port_get_private_connection(self_port);
        assert(connection);
        pretty->input_iterator =
-               bt_private_connection_create_notification_iterator(connection);
+               bt_private_connection_create_notification_iterator(connection,
+                       notif_types);
 
        if (!pretty->input_iterator) {
                pretty->error = true;
This page took 0.02493 seconds and 4 git commands to generate.