test_plugin: use env. var. instead of global symbol because G_MODULE_BIND_LOCAL
[babeltrace.git] / tests / lib / test-plugin-plugins / sfs.c
index 43acb8adfc71dbcc334dfee4b66aa6667945d9a2..c17f078b8fd172494e9aa0bb143cdf0bb8a1c5f8 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include <babeltrace/plugin/plugin-dev.h>
-#include <babeltrace/component/component-class.h>
+#include <babeltrace/graph/component-class.h>
 #include <babeltrace/values.h>
 #include <babeltrace/ref.h>
 #include <assert.h>
@@ -28,9 +28,8 @@ static enum bt_component_status sink_consume(
 }
 
 static enum bt_notification_iterator_status dummy_iterator_init_method(
-               struct bt_private_component *private_component,
-               struct bt_private_port *private_port,
-               struct bt_private_notification_iterator *private_iterator)
+               struct bt_private_notification_iterator *private_iterator,
+               struct bt_private_port *private_port)
 {
        return BT_NOTIFICATION_ITERATOR_STATUS_OK;
 }
@@ -73,6 +72,7 @@ static struct bt_value *query_method(
        return results;
 }
 
+BT_PLUGIN_MODULE();
 BT_PLUGIN(test_sfs);
 BT_PLUGIN_DESCRIPTION("Babeltrace plugin with source, sink, and filter component classes");
 BT_PLUGIN_AUTHOR("Janine Sutto");
This page took 0.023047 seconds and 4 git commands to generate.