Plugins are alive!
[babeltrace.git] / plugins / text / text.c
index 9a31041e0d0e2746de86ab29d871df7e8d92110c..40bc1c5ea6b54f69c1a0211b16deafa8643b3182 100644 (file)
@@ -116,6 +116,19 @@ static
 enum bt_component_status handle_notification(struct bt_component *component,
        struct bt_notification *notification)
 {
+       switch (bt_notification_get_type(notification)) {
+       case BT_NOTIFICATION_TYPE_PACKET_START:
+               puts("<packet>");
+               break;
+       case BT_NOTIFICATION_TYPE_PACKET_END:
+               puts("</packet>");
+               break;
+       case BT_NOTIFICATION_TYPE_EVENT:
+               puts("<event>");
+               break;
+       default:
+               puts("Unhandled notification type");
+       }
        return BT_COMPONENT_STATUS_OK;
 }
 
This page took 0.023042 seconds and 4 git commands to generate.