@@ -177,10 +177,11 @@ void NxpChipDnssdShutdown()
177
177
if (mListIsInit )
178
178
{
179
179
// Stop all browse operations and clean the browse list
180
- otInstance * thrInstancePtr = ThreadStackMgrImpl ().OTInstance ();
181
- mDnsQueryCtx * pQueryContext = reinterpret_cast <mDnsQueryCtx *>(LIST_GetHead (&mBrowseList ));;
180
+ otInstance * thrInstancePtr = ThreadStackMgrImpl ().OTInstance ();
181
+ mDnsQueryCtx * pQueryContext = reinterpret_cast <mDnsQueryCtx *>(LIST_GetHead (&mBrowseList ));
182
+ ;
182
183
183
- while (pQueryContext)
184
+ while (pQueryContext)
184
185
{
185
186
otMdnsStopBrowser (thrInstancePtr, &pQueryContext->mBrowseInfo );
186
187
LIST_RemoveElement (&pQueryContext->link );
@@ -192,7 +193,7 @@ void NxpChipDnssdShutdown()
192
193
// Stop all resolve operations and clean the resolve list
193
194
pQueryContext = reinterpret_cast <mDnsQueryCtx *>(LIST_GetHead (&mResolveList ));
194
195
195
- while (pQueryContext)
196
+ while (pQueryContext)
196
197
{
197
198
otMdnsStopSrvResolver (thrInstancePtr, &pQueryContext->mSrvInfo );
198
199
LIST_RemoveElement (&pQueryContext->link );
@@ -435,7 +436,7 @@ CHIP_ERROR NxpChipDnssdBrowse(const char * type, DnssdServiceProtocol protocol,
435
436
pBrowseContext->mBrowseInfo .mInfraIfIndex = mNetifIndex ;
436
437
pBrowseContext->mBrowseInfo .mCallback = OtBrowseCallback;
437
438
438
- LIST_AddTail (&mBrowseList , (list_element_handle_t )pBrowseContext);
439
+ LIST_AddTail (&mBrowseList , (list_element_handle_t ) pBrowseContext);
439
440
440
441
error = MapOpenThreadError (otMdnsStartBrowser (thrInstancePtr, &pBrowseContext->mBrowseInfo ));
441
442
@@ -450,7 +451,7 @@ CHIP_ERROR NxpChipDnssdBrowse(const char * type, DnssdServiceProtocol protocol,
450
451
{
451
452
// In this case, we need to send a final browse indication to signal the Matter App that there are no more
452
453
// browse results coming but the result is no error since we have a match in the SRP cache.
453
- error = CHIP_NO_ERROR;
454
+ error = CHIP_NO_ERROR;
454
455
pBrowseContext->error = CHIP_NO_ERROR;
455
456
DeviceLayer::PlatformMgr ().ScheduleWork (DispatchBrowseEmpty, reinterpret_cast <intptr_t >(pBrowseContext));
456
457
}
@@ -486,7 +487,7 @@ CHIP_ERROR NxpChipDnssdStopBrowse(intptr_t browseIdentifier)
486
487
CHIP_ERROR NxpChipDnssdResolve (DnssdService * browseResult, Inet::InterfaceId interface, DnssdResolveCallback callback,
487
488
void * context)
488
489
{
489
- ChipError error = CHIP_ERROR_NOT_FOUND;
490
+ ChipError error = CHIP_ERROR_NOT_FOUND;
490
491
mDnsQueryCtx * pResolveContext = nullptr ;
491
492
492
493
if (browseResult == nullptr || callback == nullptr )
@@ -521,7 +522,7 @@ CHIP_ERROR NxpChipDnssdResolve(DnssdService * browseResult, Inet::InterfaceId in
521
522
pResolveContext->mSrvInfo .mServiceInstance = pResolveContext->mMdnsService .mName ;
522
523
pResolveContext->mSrvInfo .mServiceType = pResolveContext->mServiceType ;
523
524
524
- LIST_AddTail (&mResolveList , (list_element_handle_t )pResolveContext);
525
+ LIST_AddTail (&mResolveList , (list_element_handle_t ) pResolveContext);
525
526
526
527
error = MapOpenThreadError (otMdnsStartSrvResolver (thrInstancePtr, &pResolveContext->mSrvInfo ));
527
528
}
@@ -838,7 +839,7 @@ static void OtServiceCallback(otInstance * aInstance, const otMdnsSrvResult * aR
838
839
839
840
static void OtTxtCallback (otInstance * aInstance, const otMdnsTxtResult * aResult)
840
841
{
841
- bool bSendDispatch = true ;
842
+ bool bSendDispatch = true ;
842
843
mDnsQueryCtx * pResolveContext = nullptr ;
843
844
844
845
// Ingnore reponses with TTL 0, the record is no longer valid and was removed from the mDNS cache
@@ -964,7 +965,7 @@ static void DispatchAddressResolve(intptr_t context)
964
965
static void DispatchResolve (intptr_t context)
965
966
{
966
967
mDnsQueryCtx * pResolveContext = reinterpret_cast <mDnsQueryCtx *>(context);
967
- Dnssd::DnssdService & service = pResolveContext->mMdnsService ;
968
+ Dnssd::DnssdService & service = pResolveContext->mMdnsService ;
968
969
Span<Inet::IPAddress> ipAddrs;
969
970
970
971
// Stop Address resolver, we have finished resolving the service
0 commit comments