@@ -182,7 +182,7 @@ CHIP_ERROR StartSrpTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
182
182
{
183
183
VerifyOrReturnValue (ctx != nullptr , CHIP_ERROR_INCORRECT_STATE);
184
184
return DeviceLayer::SystemLayer ().StartTimer (System::Clock::Milliseconds16 (timeoutInMSecs), SrpTimerExpiredCallback,
185
- reinterpret_cast <void *>(ctx));
185
+ reinterpret_cast <void *>(ctx));
186
186
}
187
187
188
188
/* *
@@ -195,7 +195,6 @@ void CancelSrpTimer(ResolveContext * ctx)
195
195
DeviceLayer::SystemLayer ().CancelTimer (SrpTimerExpiredCallback, reinterpret_cast <void *>(ctx));
196
196
}
197
197
198
-
199
198
Global<MdnsContexts> MdnsContexts::sInstance ;
200
199
201
200
namespace {
@@ -261,7 +260,7 @@ CHIP_ERROR Browse(BrowseHandler * sdCtx, uint32_t interfaceId, const char * type
261
260
ChipLogProgress (Discovery, " Browsing for: %s on domain %s" , StringOrNullMarker (type), kSrpDot );
262
261
263
262
auto sdRefSrp = sdCtx->serviceRef ; // Mandatory copy because of kDNSServiceFlagsShareConnection
264
- err = DNSServiceBrowse (&sdRefSrp, kBrowseFlags , interfaceId, type, kSrpDot , OnBrowse, sdCtx);
263
+ err = DNSServiceBrowse (&sdRefSrp, kBrowseFlags , interfaceId, type, kSrpDot , OnBrowse, sdCtx);
265
264
VerifyOrReturnError (kDNSServiceErr_NoError == err, sdCtx->Finalize (err));
266
265
267
266
return MdnsContexts::GetInstance ().Add (sdCtx, sdCtx->serviceRef );
@@ -323,9 +322,8 @@ static void OnGetAddrInfo(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t i
323
322
}
324
323
else if (domainName.compare (kLocalDot ) == 0 )
325
324
{
326
- ChipLogProgress (
327
- Discovery,
328
- " Mdns: Resolve completed on the local domain. Starting a timer for the srp resolve to come back" );
325
+ ChipLogProgress (Discovery,
326
+ " Mdns: Resolve completed on the local domain. Starting a timer for the srp resolve to come back" );
329
327
330
328
// Usually the resolution on the local domain is quicker than on the srp domain. We would like to give the
331
329
// resolution on the srp domain around 250 millisecs more to give it a chance to resolve before finalizing
@@ -383,7 +381,7 @@ static void OnResolve(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t inter
383
381
if (!sdCtx->isResolveRequested )
384
382
{
385
383
GetAddrInfo (sdCtx);
386
- sdCtx->isResolveRequested = true ;
384
+ sdCtx->isResolveRequested = true ;
387
385
}
388
386
}
389
387
}
@@ -403,7 +401,7 @@ static CHIP_ERROR Resolve(ResolveContext * sdCtx, uint32_t interfaceId, chip::In
403
401
VerifyOrReturnError (kDNSServiceErr_NoError == err, sdCtx->Finalize (err));
404
402
405
403
auto sdRefSrp = sdCtx->serviceRef ; // Mandatory copy because of kDNSServiceFlagsShareConnection
406
- err = DNSServiceResolve (&sdRefSrp, kResolveFlags , interfaceId, name, type, kSrpDot , OnResolve, sdCtx);
404
+ err = DNSServiceResolve (&sdRefSrp, kResolveFlags , interfaceId, name, type, kSrpDot , OnResolve, sdCtx);
407
405
VerifyOrReturnError (kDNSServiceErr_NoError == err, sdCtx->Finalize (err));
408
406
409
407
auto retval = MdnsContexts::GetInstance ().Add (sdCtx, sdCtx->serviceRef );
0 commit comments