diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm index 73dcec1946c8b5..28c20b1747b502 100644 --- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm +++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CastingServerBridge.mm @@ -805,7 +805,7 @@ - (void)contentLauncher_subscribeSupportedStreamingProtocols:(ContentApp * _Nonn callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"contentLauncher_subscribeSupportedStreamingProtocols"]; callback(); @@ -912,7 +912,7 @@ - (void)levelControl_subscribeCurrentLevel:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"levelControl_subscribeCurrentLevel"]; callback(); @@ -957,7 +957,7 @@ - (void)levelControl_subscribeMinLevel:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"levelControl_subscribeMinLevel"]; callback(); @@ -1002,7 +1002,7 @@ - (void)levelControl_subscribeMaxLevel:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"levelControl_subscribeMaxLevel"]; callback(); @@ -1319,7 +1319,7 @@ - (void)mediaPlayback_subscribeCurrentState:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeCurrentState"]; callback(); @@ -1364,7 +1364,7 @@ - (void)mediaPlayback_subscribeStartTime:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeStartTime"]; callback(); @@ -1409,7 +1409,7 @@ - (void)mediaPlayback_subscribeDuration:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeDuration"]; callback(); @@ -1469,7 +1469,7 @@ - (void)mediaPlayback_subscribeSampledPosition:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeSampledPosition"]; callback(); @@ -1516,7 +1516,7 @@ - (void)mediaPlayback_subscribePlaybackSpeed:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribePlaybackSpeed"]; callback(); @@ -1563,7 +1563,7 @@ - (void)mediaPlayback_subscribeSeekRangeEnd:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeSeekRangeEnd"]; callback(); @@ -1610,7 +1610,7 @@ - (void)mediaPlayback_subscribeSeekRangeStart:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"mediaPlayback_subscribeSeekRangeStart"]; callback(); @@ -1795,7 +1795,7 @@ - (void)targetNavigator_subscribeTargetList:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"targetNavigator_subscribeTargetList"]; callback(); @@ -1842,7 +1842,7 @@ - (void)targetNavigator_subscribeCurrentTarget:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"targetNavigator_subscribeCurrentTarget"]; callback(); @@ -1916,7 +1916,7 @@ - (void)applicationBasic_subscribeVendorName:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"applicationBasic_subscribeVendorName"]; callback(); @@ -1962,7 +1962,7 @@ - (void)applicationBasic_subscribeVendorID:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"applicationBasic_subscribeVendorID"]; callback(); @@ -2010,7 +2010,7 @@ - (void)applicationBasic_subscribeApplicationName:(ContentApp * _Nonnull)content callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"applicationBasic_subscribeApplicationName"]; callback(); @@ -2056,7 +2056,7 @@ - (void)applicationBasic_subscribeProductID:(ContentApp * _Nonnull)contentApp callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"applicationBasic_subscribeProductID"]; callback(); @@ -2105,7 +2105,7 @@ - (void)applicationBasic_subscribeApplicationVersion:(ContentApp * _Nonnull)cont callback([[MatterError alloc] initWithCode:err.AsInteger() message:[NSString stringWithUTF8String:err.AsString()]]); }, minInterval, maxInterval, - [](void * context) { + [](void * context, chip::SubscriptionId subscriptionId) { void (^callback)() = [[CastingServerBridge getSharedInstance].subscriptionEstablishedCallbacks objectForKey:@"applicationBasic_subscribeApplicationVersion"]; callback();