Skip to content

Commit

Permalink
add empty method register/unregister impl
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink committed Sep 1, 2023
1 parent 1c92f98 commit e52ad65
Showing 1 changed file with 48 additions and 18 deletions.
66 changes: 48 additions & 18 deletions src/mdns/dnssd_plat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ extern "C" void otPlatDnssdRegisterService(otInstance *aInstance
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aService);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->RegisterService(*aService, aRequestId, aCallback);
}

extern "C" void otPlatDnssdUnregisterService(otInstance *aInstance,
Expand All @@ -71,9 +69,7 @@ extern "C" void otPlatDnssdUnregisterService(otInstance *aInstan
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aService);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->UnregisterService(*aService, aRequestId, aCallback);
}

extern "C" void otPlatDnssdRegisterHost(otInstance *aInstance,
Expand All @@ -82,9 +78,7 @@ extern "C" void otPlatDnssdRegisterHost(otInstance *aInstance,
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aHost);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->RegisterHost(*aHost, aRequestId, aCallback);
}

extern "C" void otPlatDnssdUnregisterHost(otInstance *aInstance,
Expand All @@ -93,9 +87,7 @@ extern "C" void otPlatDnssdUnregisterHost(otInstance *aInstance,
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aHost);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->UnregisterHost(*aHost, aRequestId, aCallback);
}

extern "C" void otPlatDnssdRegisterKey(otInstance *aInstance,
Expand All @@ -104,9 +96,7 @@ extern "C" void otPlatDnssdRegisterKey(otInstance *aInstance,
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aKey);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->RegisterKey(*aKey, aRequestId, aCallback);
}

extern "C" void otPlatDnssdUnregisterKey(otInstance *aInstance,
Expand All @@ -115,9 +105,7 @@ extern "C" void otPlatDnssdUnregisterKey(otInstance *aInstance,
otPlatDnssdRegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aKey);
OT_UNUSED_VARIABLE(aRequestId);
OT_UNUSED_VARIABLE(aCallback);
sDnssdPlatform->UnregisterKey(*aKey, aRequestId, aCallback);
}

extern "C" void otPlatDnssdStartServiceBrowser(otInstance *aInstance, const char *aServiceType, uint32_t aInfraIfIndex)
Expand Down Expand Up @@ -212,6 +200,48 @@ void DnssdPlatform::HandleMdnsPublisherStateChange(Mdns::Publisher::State aState
otPlatDnssdStateHandleStateChange(mNcp.GetInstance());
}

void DnssdPlatform::RegisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aService);
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

void DnssdPlatform::UnregisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aService)
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

void DnssdPlatform::RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aHost)
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

void DnssdPlatform::UnregisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aHost)
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

void DnssdPlatform::RegisterKey(const Key &aKey, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aKey)
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

void DnssdPlatform::UnregisterKey(const Key &aKey, RequestId aRequestId, RegisterCallback aCallback)
{
OT_UNUSED_VARIABLE(aKey)
OT_UNUSED_VARIABLE(aCallback);
OT_UNUSED_VARIABLE(aRequestId);
}

} // namespace otbr

#endif // OTBR_ENABLE_DNSSD_PLAT

0 comments on commit e52ad65

Please sign in to comment.