blob: 3a350aaf799dad1a9ee88315c4e98f8cf86b6e2c [file]
/*
*
* Copyright (c) 2024, 2026 Project CHIP Authors
* Copyright 2024, 2026 NXP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <lib/dnssd/platform/Dnssd.h>
namespace chip {
namespace Dnssd {
CHIP_ERROR OpenThreadBrDnssdInit(DnssdAsyncReturnCallback initCallback, DnssdAsyncReturnCallback errorCallback, void * context);
void OpenThreadBrDnssdShutdown();
CHIP_ERROR OpenThreadBrDnssdPublishService(const DnssdService * service, DnssdPublishCallback callback, void * context);
CHIP_ERROR OpenThreadBrDnssdRemoveServices();
CHIP_ERROR OpenThreadBrDnssdFinalizeServiceUpdate();
CHIP_ERROR OpenThreadBrDnssdBrowse(const char * type, DnssdServiceProtocol protocol, chip::Inet::IPAddressType addressType,
chip::Inet::InterfaceId interface, DnssdBrowseCallback callback, void * context,
intptr_t * browseIdentifier);
CHIP_ERROR OpenThreadBrDnssdStopBrowse(intptr_t browseIdentifier);
CHIP_ERROR OpenThreadBrDnssdResolve(DnssdService * service, chip::Inet::InterfaceId interface, DnssdResolveCallback callback,
void * context);
void OpenThreadBrDnssdResolveNoLongerNeeded(const char * instanceName);
} // namespace Dnssd
} // namespace chip