Skip to content

Commit d9ecd38

Browse files
restyled-commitsmarius-preda
authored andcommitted
Restyled by clang-format
1 parent f61b62a commit d9ecd38

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/platform/nxp/common/DnssdImplBr.cpp

+11-10
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ void NxpChipDnssdShutdown()
177177
if (mListIsInit)
178178
{
179179
// 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+
;
182183

183-
while(pQueryContext)
184+
while (pQueryContext)
184185
{
185186
otMdnsStopBrowser(thrInstancePtr, &pQueryContext->mBrowseInfo);
186187
LIST_RemoveElement(&pQueryContext->link);
@@ -192,7 +193,7 @@ void NxpChipDnssdShutdown()
192193
// Stop all resolve operations and clean the resolve list
193194
pQueryContext = reinterpret_cast<mDnsQueryCtx *>(LIST_GetHead(&mResolveList));
194195

195-
while(pQueryContext)
196+
while (pQueryContext)
196197
{
197198
otMdnsStopSrvResolver(thrInstancePtr, &pQueryContext->mSrvInfo);
198199
LIST_RemoveElement(&pQueryContext->link);
@@ -435,7 +436,7 @@ CHIP_ERROR NxpChipDnssdBrowse(const char * type, DnssdServiceProtocol protocol,
435436
pBrowseContext->mBrowseInfo.mInfraIfIndex = mNetifIndex;
436437
pBrowseContext->mBrowseInfo.mCallback = OtBrowseCallback;
437438

438-
LIST_AddTail(&mBrowseList, (list_element_handle_t)pBrowseContext);
439+
LIST_AddTail(&mBrowseList, (list_element_handle_t) pBrowseContext);
439440

440441
error = MapOpenThreadError(otMdnsStartBrowser(thrInstancePtr, &pBrowseContext->mBrowseInfo));
441442

@@ -450,7 +451,7 @@ CHIP_ERROR NxpChipDnssdBrowse(const char * type, DnssdServiceProtocol protocol,
450451
{
451452
// In this case, we need to send a final browse indication to signal the Matter App that there are no more
452453
// 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;
454455
pBrowseContext->error = CHIP_NO_ERROR;
455456
DeviceLayer::PlatformMgr().ScheduleWork(DispatchBrowseEmpty, reinterpret_cast<intptr_t>(pBrowseContext));
456457
}
@@ -486,7 +487,7 @@ CHIP_ERROR NxpChipDnssdStopBrowse(intptr_t browseIdentifier)
486487
CHIP_ERROR NxpChipDnssdResolve(DnssdService * browseResult, Inet::InterfaceId interface, DnssdResolveCallback callback,
487488
void * context)
488489
{
489-
ChipError error = CHIP_ERROR_NOT_FOUND;
490+
ChipError error = CHIP_ERROR_NOT_FOUND;
490491
mDnsQueryCtx * pResolveContext = nullptr;
491492

492493
if (browseResult == nullptr || callback == nullptr)
@@ -521,7 +522,7 @@ CHIP_ERROR NxpChipDnssdResolve(DnssdService * browseResult, Inet::InterfaceId in
521522
pResolveContext->mSrvInfo.mServiceInstance = pResolveContext->mMdnsService.mName;
522523
pResolveContext->mSrvInfo.mServiceType = pResolveContext->mServiceType;
523524

524-
LIST_AddTail(&mResolveList, (list_element_handle_t)pResolveContext);
525+
LIST_AddTail(&mResolveList, (list_element_handle_t) pResolveContext);
525526

526527
error = MapOpenThreadError(otMdnsStartSrvResolver(thrInstancePtr, &pResolveContext->mSrvInfo));
527528
}
@@ -838,7 +839,7 @@ static void OtServiceCallback(otInstance * aInstance, const otMdnsSrvResult * aR
838839

839840
static void OtTxtCallback(otInstance * aInstance, const otMdnsTxtResult * aResult)
840841
{
841-
bool bSendDispatch = true;
842+
bool bSendDispatch = true;
842843
mDnsQueryCtx * pResolveContext = nullptr;
843844

844845
// 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)
964965
static void DispatchResolve(intptr_t context)
965966
{
966967
mDnsQueryCtx * pResolveContext = reinterpret_cast<mDnsQueryCtx *>(context);
967-
Dnssd::DnssdService & service = pResolveContext->mMdnsService;
968+
Dnssd::DnssdService & service = pResolveContext->mMdnsService;
968969
Span<Inet::IPAddress> ipAddrs;
969970

970971
// Stop Address resolver, we have finished resolving the service

0 commit comments

Comments
 (0)