From dec5fc14f2affdbc211406ee0a4798d723cd5cea Mon Sep 17 00:00:00 2001 From: Anush Nadathur Date: Sat, 24 Aug 2024 09:53:49 -0700 Subject: [PATCH] [Darwin] Adding missing property on XPC controller - Added controllerID to match the OverXPC interface --- src/darwin/Framework/CHIP/MTRDeviceController_XPC.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/darwin/Framework/CHIP/MTRDeviceController_XPC.mm b/src/darwin/Framework/CHIP/MTRDeviceController_XPC.mm index 67049b280d81f3..d72dc211b70b4f 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController_XPC.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController_XPC.mm @@ -78,6 +78,11 @@ - (NSXPCInterface *)_interfaceForClientProtocol return interface; } +- (id)controllerXPCID +{ + return [self.uniqueIdentifier UUIDString]; +} + - (id)initWithUniqueIdentifier:(NSUUID *)UUID xpConnectionBlock:(NSXPCConnection * (^)(void) )connectionBlock { if (self = [super initForSubclasses]) {