- const bt_component_sink *sinkComp;
-
- {
- const auto sinkCompCls = bt2::SinkComponentClass::create<DummySink>();
- const auto status = bt_graph_add_sink_component_with_initialize_method_data(
- graph, sinkCompCls->libObjPtr(), "the-sink", nullptr, nullptr, BT_LOGGING_LEVEL_NONE,
- &sinkComp);
-
- BT_ASSERT(status == BT_GRAPH_ADD_COMPONENT_STATUS_OK);
- }