Home
last modified time | relevance | path

Searched refs:aService (Results 1 – 20 of 20) sorted by relevance

/openthread-2.7.6/src/core/api/
Dsrp_server_api.cpp128 const otSrpServerService *aService) in otSrpServerHostGetNextService() argument
132 return host->FindNextService(static_cast<const Srp::Server::Service *>(aService), in otSrpServerHostGetNextService()
148 bool otSrpServerServiceIsDeleted(const otSrpServerService *aService) in otSrpServerServiceIsDeleted() argument
150 return static_cast<const Srp::Server::Service *>(aService)->IsDeleted(); in otSrpServerServiceIsDeleted()
153 bool otSrpServerServiceIsSubType(const otSrpServerService *aService) in otSrpServerServiceIsSubType() argument
155 return static_cast<const Srp::Server::Service *>(aService)->IsSubType(); in otSrpServerServiceIsSubType()
158 const char *otSrpServerServiceGetFullName(const otSrpServerService *aService) in otSrpServerServiceGetFullName() argument
160 return static_cast<const Srp::Server::Service *>(aService)->GetInstanceName(); in otSrpServerServiceGetFullName()
163 const char *otSrpServerServiceGetInstanceName(const otSrpServerService *aService) in otSrpServerServiceGetInstanceName() argument
165 return static_cast<const Srp::Server::Service *>(aService)->GetInstanceName(); in otSrpServerServiceGetInstanceName()
[all …]
Dsrp_client_api.cpp154 otError otSrpClientAddService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientAddService() argument
158 return instance.Get<Srp::Client>().AddService(*static_cast<Srp::Client::Service *>(aService)); in otSrpClientAddService()
161 otError otSrpClientRemoveService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientRemoveService() argument
165 … return instance.Get<Srp::Client>().RemoveService(*static_cast<Srp::Client::Service *>(aService)); in otSrpClientRemoveService()
168 otError otSrpClientClearService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientClearService() argument
172 return instance.Get<Srp::Client>().ClearService(*static_cast<Srp::Client::Service *>(aService)); in otSrpClientClearService()
Dsrp_client_buffers_api.cpp67 void otSrpClientBuffersFreeService(otInstance *aInstance, otSrpClientBuffersServiceEntry *aService) in otSrpClientBuffersFreeService() argument
72 *static_cast<Utils::SrpClientBuffers::ServiceEntry *>(aService)); in otSrpClientBuffersFreeService()
/openthread-2.7.6/include/openthread/
Dsrp_server.h356 const otSrpServerService *aService);
408 bool otSrpServerServiceIsDeleted(const otSrpServerService *aService);
418 bool otSrpServerServiceIsSubType(const otSrpServerService *aService);
431 const char *otSrpServerServiceGetFullName(const otSrpServerService *aService);
441 const char *otSrpServerServiceGetInstanceName(const otSrpServerService *aService);
451 const char *otSrpServerServiceGetServiceName(const otSrpServerService *aService);
474 otError otSrpServerServiceGetServiceSubTypeLabel(const otSrpServerService *aService, char *aLabel, …
484 uint16_t otSrpServerServiceGetPort(const otSrpServerService *aService);
494 uint16_t otSrpServerServiceGetWeight(const otSrpServerService *aService);
504 uint16_t otSrpServerServiceGetPriority(const otSrpServerService *aService);
[all …]
Dsrp_client.h454 otError otSrpClientAddService(otInstance *aInstance, otSrpClientService *aService);
475 otError otSrpClientRemoveService(otInstance *aInstance, otSrpClientService *aService);
495 otError otSrpClientClearService(otInstance *aInstance, otSrpClientService *aService);
Dsrp_client_buffers.h127 void otSrpClientBuffersFreeService(otInstance *aInstance, otSrpClientBuffersServiceEntry *aService);
/openthread-2.7.6/src/core/net/
Dsrp_client.cpp438 Error Client::AddService(Service &aService) in AddService() argument
442 VerifyOrExit(mServices.FindMatching(aService) == nullptr, error = kErrorAlready); in AddService()
444 SuccessOrExit(error = aService.Init()); in AddService()
445 mServices.Push(aService); in AddService()
447 aService.SetState(kToAdd); in AddService()
454 Error Client::RemoveService(Service &aService) in RemoveService() argument
459 VerifyOrExit(mServices.Contains(aService), error = kErrorNotFound); in RemoveService()
461 UpdateServiceStateToRemove(aService); in RemoveService()
478 void Client::UpdateServiceStateToRemove(Service &aService) in UpdateServiceStateToRemove() argument
480 if (aService.GetState() == kToAdd) in UpdateServiceStateToRemove()
[all …]
Dsrp_client.hpp516 Error AddService(Service &aService);
530 Error RemoveService(Service &aService);
546 Error ClearService(Service &aService);
808 void UpdateServiceStateToRemove(Service &aService);
818 Error AppendServiceInstructions(Service &aService, Message &aMessage, Info &aInfo);
837 bool ShouldRenewEarly(const Service &aService) const;
Dsrp_server.cpp1671 void Server::Host::RemoveService(Service *aService, bool aRetainName, bool aNotifyServiceHandler) in RemoveService() argument
1675 VerifyOrExit(aService != nullptr); in RemoveService()
1677 aService->mIsDeleted = true; in RemoveService()
1679 aService->Log(aRetainName ? Service::kRemoveButRetainName : Service::kFullyRemove); in RemoveService()
1694 IgnoreError(mServices.Remove(*aService)); in RemoveService()
1695 aService->Free(); in RemoveService()
Ddnssd_server.hpp359 const Srp::Server::Service *aService);
Dsrp_server.hpp478 …void RemoveService(Service *aService, bool aRetainName, bool aNotifyService…
Ddnssd_server.cpp772 const Srp::Server::Service *aService) in GetNextSrpService() argument
774 return aHost.FindNextService(aService, Srp::Server::kFlagsAnyTypeActiveService); in GetNextSrpService()
/openthread-2.7.6/src/core/thread/
Dnetwork_data_leader_ftd.cpp533 Error Leader::ValidateService(const ServiceTlv &aService, uint16_t aRloc16) in ValidateService() argument
539 const NetworkDataTlv *subEnd = aService.GetNext(); in ValidateService()
542 …for (const NetworkDataTlv *subCur = aService.GetSubTlvs(); subCur < subEnd; subCur = subCur->GetNe… in ValidateService()
632 bool Leader::ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer) in ContainsMatchingServer() argument
639 if (aService != nullptr) in ContainsMatchingServer()
642 TlvIterator subTlvIterator(*aService); in ContainsMatchingServer()
662 Leader::UpdateStatus Leader::UpdateService(ServiceTlv &aService) in UpdateService() argument
664 return UpdateTlv(aService, aService.GetSubTlvs()); in UpdateService()
787 Error Leader::AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags) in AddService() argument
790 …ServiceTlv * dstService = FindService(aService.GetEnterpriseNumber(), aService.GetServiceData(… in AddService()
[all …]
Dnetwork_data_leader_ftd.hpp217 Error AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags);
243 void RemoveRlocInService(ServiceTlv & aService,
265 static Error ValidateService(const ServiceTlv &aService, uint16_t aRloc16);
271 static bool ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer);
274 UpdateStatus UpdateService(ServiceTlv &aService);
Dnetwork_data.cpp510 void NetworkData::RemoveTemporaryData(uint8_t *aData, uint8_t &aDataLength, ServiceTlv &aService) in RemoveTemporaryData() argument
512 NetworkDataTlv *cur = aService.GetSubTlvs(); in RemoveTemporaryData()
514 while (cur < aService.GetNext()) in RemoveTemporaryData()
523 server->SetServer16(Mle::Mle::ServiceAlocFromId(aService.GetServiceId())); in RemoveTemporaryData()
539 aService.SetSubTlvsLength(aService.GetSubTlvsLength() - subTlvSize); in RemoveTemporaryData()
Dnetwork_data_local.cpp249 void Local::UpdateRloc(ServiceTlv &aService) in UpdateRloc() argument
253 … for (NetworkDataTlv *cur = aService.GetSubTlvs(); cur < aService.GetNext(); cur = cur->GetNext()) in UpdateRloc()
Dnetwork_data_local.hpp181 void UpdateRloc(ServiceTlv &aService);
Dnetwork_data.hpp684 static void RemoveTemporaryData(uint8_t *aData, uint8_t &aDataLength, ServiceTlv &aService);
/openthread-2.7.6/src/cli/
Dcli_srp_client.cpp518 void SrpClient::OutputService(uint8_t aIndentSize, const otSrpClientService &aService) in OutputService() argument
520 …ter.OutputFormat(aIndentSize, "instance:\"%s\", name:\"%s", aService.mInstanceName, aService.mName… in OutputService()
522 if (aService.mSubTypeLabels != nullptr) in OutputService()
524 for (uint16_t index = 0; aService.mSubTypeLabels[index] != nullptr; index++) in OutputService()
526 mInterpreter.OutputFormat(",%s", aService.mSubTypeLabels[index]); in OutputService()
531 … otSrpClientItemStateToString(aService.mState), aService.mPort, aService.mPriority, in OutputService()
532 aService.mWeight); in OutputService()
Dcli_srp_client.hpp106 void OutputService(uint8_t aIndentSize, const otSrpClientService &aService);