diff --git a/cpp/platform/impl/windows/BUILD b/cpp/platform/impl/windows/BUILD index d07e44ac..01e2f7b8 100644 --- a/cpp/platform/impl/windows/BUILD +++ b/cpp/platform/impl/windows/BUILD @@ -92,6 +92,7 @@ cc_library( "bluetooth_classic_server_socket.cc", "bluetooth_classic_socket.cc", "platform.cc", + "utils.cc", ], hdrs = [ "bluetooth_classic.h", diff --git a/windows/core_adapter.cc b/windows/core_adapter.cc index f42d161b..478b0ad0 100644 --- a/windows/core_adapter.cc +++ b/windows/core_adapter.cc @@ -20,13 +20,10 @@ namespace location { namespace nearby { namespace connections { -Core* InitCoreWithServiceControllerFactory( - std::function factory) { - return new Core(factory); +Core* InitCore(ServiceControllerRouter* router) { + return new Core(router); } -Core* InitCore() { return new Core(); } - void CloseCore(Core* pCore) { if (pCore) { pCore->StopAllEndpoints(