plugin-dev.h: put selector (type) close to union in structures
[babeltrace.git] / lib / component / iterator.c
index 188095cf856c46b3710ddbc1b122f9931d4cc425..c8c41a0b5b901d2bc7dfc38f993ab0ada40b429c 100644 (file)
@@ -29,7 +29,7 @@
 #include <babeltrace/compiler.h>
 #include <babeltrace/ref.h>
 #include <babeltrace/component/component.h>
-#include <babeltrace/component/source-internal.h>
+#include <babeltrace/component/component-source-internal.h>
 #include <babeltrace/component/notification/iterator.h>
 #include <babeltrace/component/notification/iterator-internal.h>
 
@@ -53,17 +53,17 @@ BT_HIDDEN
 struct bt_notification_iterator *bt_notification_iterator_create(
                struct bt_component *component)
 {
-       enum bt_component_type type;
+       enum bt_component_class_type type;
        struct bt_notification_iterator *iterator = NULL;
 
        if (!component) {
                goto end;
        }
 
-       type = bt_component_get_type(component);
+       type = bt_component_get_class_type(component);
        switch (type) {
-       case BT_COMPONENT_TYPE_SOURCE:
-       case BT_COMPONENT_TYPE_FILTER:
+       case BT_COMPONENT_CLASS_TYPE_SOURCE:
+       case BT_COMPONENT_CLASS_TYPE_FILTER:
                break;
        default:
                goto end;
This page took 0.025721 seconds and 4 git commands to generate.