1*cfb92d14SAndroid Build Coastguard Worker /*
2*cfb92d14SAndroid Build Coastguard Worker * Copyright (c) 2023, The OpenThread Authors.
3*cfb92d14SAndroid Build Coastguard Worker * All rights reserved.
4*cfb92d14SAndroid Build Coastguard Worker *
5*cfb92d14SAndroid Build Coastguard Worker * Redistribution and use in source and binary forms, with or without
6*cfb92d14SAndroid Build Coastguard Worker * modification, are permitted provided that the following conditions are met:
7*cfb92d14SAndroid Build Coastguard Worker * 1. Redistributions of source code must retain the above copyright
8*cfb92d14SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer.
9*cfb92d14SAndroid Build Coastguard Worker * 2. Redistributions in binary form must reproduce the above copyright
10*cfb92d14SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer in the
11*cfb92d14SAndroid Build Coastguard Worker * documentation and/or other materials provided with the distribution.
12*cfb92d14SAndroid Build Coastguard Worker * 3. Neither the name of the copyright holder nor the
13*cfb92d14SAndroid Build Coastguard Worker * names of its contributors may be used to endorse or promote products
14*cfb92d14SAndroid Build Coastguard Worker * derived from this software without specific prior written permission.
15*cfb92d14SAndroid Build Coastguard Worker *
16*cfb92d14SAndroid Build Coastguard Worker * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17*cfb92d14SAndroid Build Coastguard Worker * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*cfb92d14SAndroid Build Coastguard Worker * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*cfb92d14SAndroid Build Coastguard Worker * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20*cfb92d14SAndroid Build Coastguard Worker * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21*cfb92d14SAndroid Build Coastguard Worker * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22*cfb92d14SAndroid Build Coastguard Worker * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23*cfb92d14SAndroid Build Coastguard Worker * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24*cfb92d14SAndroid Build Coastguard Worker * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25*cfb92d14SAndroid Build Coastguard Worker * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26*cfb92d14SAndroid Build Coastguard Worker * POSSIBILITY OF SUCH DAMAGE.
27*cfb92d14SAndroid Build Coastguard Worker */
28*cfb92d14SAndroid Build Coastguard Worker
29*cfb92d14SAndroid Build Coastguard Worker #include "platform-simulation.h"
30*cfb92d14SAndroid Build Coastguard Worker
31*cfb92d14SAndroid Build Coastguard Worker #include <openthread/platform/dnssd.h>
32*cfb92d14SAndroid Build Coastguard Worker
33*cfb92d14SAndroid Build Coastguard Worker #if OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE
otPlatDnssdGetState(otInstance * aInstance)34*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdState otPlatDnssdGetState(otInstance *aInstance)
35*cfb92d14SAndroid Build Coastguard Worker {
36*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
37*cfb92d14SAndroid Build Coastguard Worker
38*cfb92d14SAndroid Build Coastguard Worker return OT_PLAT_DNSSD_STOPPED;
39*cfb92d14SAndroid Build Coastguard Worker }
40*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdRegisterService(otInstance * aInstance,const otPlatDnssdService * aService,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)41*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdRegisterService(otInstance *aInstance,
42*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdService *aService,
43*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
44*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
45*cfb92d14SAndroid Build Coastguard Worker {
46*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
47*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aService);
48*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
49*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
50*cfb92d14SAndroid Build Coastguard Worker }
51*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdUnregisterService(otInstance * aInstance,const otPlatDnssdService * aService,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)52*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdUnregisterService(otInstance *aInstance,
53*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdService *aService,
54*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
55*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
56*cfb92d14SAndroid Build Coastguard Worker {
57*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
58*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aService);
59*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
60*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
61*cfb92d14SAndroid Build Coastguard Worker }
62*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdRegisterHost(otInstance * aInstance,const otPlatDnssdHost * aHost,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)63*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdRegisterHost(otInstance *aInstance,
64*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdHost *aHost,
65*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
66*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
67*cfb92d14SAndroid Build Coastguard Worker {
68*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
69*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aHost);
70*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
71*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
72*cfb92d14SAndroid Build Coastguard Worker }
73*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdUnregisterHost(otInstance * aInstance,const otPlatDnssdHost * aHost,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)74*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdUnregisterHost(otInstance *aInstance,
75*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdHost *aHost,
76*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
77*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
78*cfb92d14SAndroid Build Coastguard Worker {
79*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
80*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aHost);
81*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
82*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
83*cfb92d14SAndroid Build Coastguard Worker }
84*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdRegisterKey(otInstance * aInstance,const otPlatDnssdKey * aKey,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)85*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdRegisterKey(otInstance *aInstance,
86*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdKey *aKey,
87*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
88*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
89*cfb92d14SAndroid Build Coastguard Worker {
90*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
91*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aKey);
92*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
93*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
94*cfb92d14SAndroid Build Coastguard Worker }
95*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdUnregisterKey(otInstance * aInstance,const otPlatDnssdKey * aKey,otPlatDnssdRequestId aRequestId,otPlatDnssdRegisterCallback aCallback)96*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdUnregisterKey(otInstance *aInstance,
97*cfb92d14SAndroid Build Coastguard Worker const otPlatDnssdKey *aKey,
98*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRequestId aRequestId,
99*cfb92d14SAndroid Build Coastguard Worker otPlatDnssdRegisterCallback aCallback)
100*cfb92d14SAndroid Build Coastguard Worker {
101*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
102*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aKey);
103*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aRequestId);
104*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aCallback);
105*cfb92d14SAndroid Build Coastguard Worker }
106*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStartBrowser(otInstance * aInstance,const otPlatDnssdBrowser * aBrowser)107*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStartBrowser(otInstance *aInstance, const otPlatDnssdBrowser *aBrowser)
108*cfb92d14SAndroid Build Coastguard Worker {
109*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
110*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aBrowser);
111*cfb92d14SAndroid Build Coastguard Worker }
112*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStopBrowser(otInstance * aInstance,const otPlatDnssdBrowser * aBrowser)113*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStopBrowser(otInstance *aInstance, const otPlatDnssdBrowser *aBrowser)
114*cfb92d14SAndroid Build Coastguard Worker {
115*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
116*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aBrowser);
117*cfb92d14SAndroid Build Coastguard Worker }
118*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStartSrvResolver(otInstance * aInstance,const otPlatDnssdSrvResolver * aResolver)119*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStartSrvResolver(otInstance *aInstance, const otPlatDnssdSrvResolver *aResolver)
120*cfb92d14SAndroid Build Coastguard Worker {
121*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
122*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
123*cfb92d14SAndroid Build Coastguard Worker }
124*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStopSrvResolver(otInstance * aInstance,const otPlatDnssdSrvResolver * aResolver)125*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStopSrvResolver(otInstance *aInstance, const otPlatDnssdSrvResolver *aResolver)
126*cfb92d14SAndroid Build Coastguard Worker {
127*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
128*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
129*cfb92d14SAndroid Build Coastguard Worker }
130*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStartTxtResolver(otInstance * aInstance,const otPlatDnssdTxtResolver * aResolver)131*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStartTxtResolver(otInstance *aInstance, const otPlatDnssdTxtResolver *aResolver)
132*cfb92d14SAndroid Build Coastguard Worker {
133*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
134*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
135*cfb92d14SAndroid Build Coastguard Worker }
136*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStopTxtResolver(otInstance * aInstance,const otPlatDnssdTxtResolver * aResolver)137*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStopTxtResolver(otInstance *aInstance, const otPlatDnssdTxtResolver *aResolver)
138*cfb92d14SAndroid Build Coastguard Worker {
139*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
140*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
141*cfb92d14SAndroid Build Coastguard Worker }
142*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStartIp6AddressResolver(otInstance * aInstance,const otPlatDnssdAddressResolver * aResolver)143*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStartIp6AddressResolver(otInstance *aInstance, const otPlatDnssdAddressResolver *aResolver)
144*cfb92d14SAndroid Build Coastguard Worker {
145*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
146*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
147*cfb92d14SAndroid Build Coastguard Worker }
148*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStopIp6AddressResolver(otInstance * aInstance,const otPlatDnssdAddressResolver * aResolver)149*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStopIp6AddressResolver(otInstance *aInstance, const otPlatDnssdAddressResolver *aResolver)
150*cfb92d14SAndroid Build Coastguard Worker {
151*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
152*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
153*cfb92d14SAndroid Build Coastguard Worker }
154*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStartIp4AddressResolver(otInstance * aInstance,const otPlatDnssdAddressResolver * aResolver)155*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStartIp4AddressResolver(otInstance *aInstance, const otPlatDnssdAddressResolver *aResolver)
156*cfb92d14SAndroid Build Coastguard Worker {
157*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
158*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
159*cfb92d14SAndroid Build Coastguard Worker }
160*cfb92d14SAndroid Build Coastguard Worker
otPlatDnssdStopIp4AddressResolver(otInstance * aInstance,const otPlatDnssdAddressResolver * aResolver)161*cfb92d14SAndroid Build Coastguard Worker void otPlatDnssdStopIp4AddressResolver(otInstance *aInstance, const otPlatDnssdAddressResolver *aResolver)
162*cfb92d14SAndroid Build Coastguard Worker {
163*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aInstance);
164*cfb92d14SAndroid Build Coastguard Worker OT_UNUSED_VARIABLE(aResolver);
165*cfb92d14SAndroid Build Coastguard Worker }
166*cfb92d14SAndroid Build Coastguard Worker
167*cfb92d14SAndroid Build Coastguard Worker #endif // OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE
168