#include <utility>
#include "common/assert.h"
+#include "cpp-common/bt2/wrap.hpp"
#include "run-in.hpp"
auto& data = runInDataFromMethodData(initMethodData);
if (data.compCtxFunc) {
- data.compCtxFunc(bt_self_component_source_as_self_component(selfComp));
+ data.compCtxFunc(bt2::wrap(bt_self_component_source_as_self_component(selfComp)));
}
return BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK;
auto& data = runInDataFromMethodData(methodData);
if (data.compClsCtxFunc) {
- data.compClsCtxFunc(bt_self_component_class_source_as_self_component_class(selfCompCls));
+ data.compClsCtxFunc(
+ bt2::wrap(bt_self_component_class_source_as_self_component_class(selfCompCls)));
}
*result = bt_value_null;
bt_self_component_port_output_as_self_component_port(port)));
if (data.msgIterCtxFunc) {
- data.msgIterCtxFunc(selfMsgIter);
+ data.msgIterCtxFunc(bt2::wrap(selfMsgIter));
}
return BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_OK;