From 512ba2af43a85dadd7218aa58e991c603b253365 Mon Sep 17 00:00:00 2001 From: jfcarroll Date: Thu, 12 Aug 2021 14:19:45 -0700 Subject: [PATCH] Fix for the broken build, the signature of core constructor was changed, so I changed the core_adapter accordingly PiperOrigin-RevId: 390458570 --- cpp/platform/impl/windows/BUILD | 1 + windows/core_adapter.cc | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) 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(