···11-00000000000053f4 T _DNSServiceAddRecord
22-0000000000003753 T _DNSServiceBrowse
33-000000000000444c T _DNSServiceBrowserCreate
44-0000000000003a8c T _DNSServiceConstructFullName
55-000000000000174c T _DNSServiceCreateConnection
66-0000000000003261 T _DNSServiceCreateDelegateConnection
77-00000000000044a3 T _DNSServiceDiscoveryDeallocate
88-0000000000004485 T _DNSServiceDiscoveryMachPort
99-0000000000004474 T _DNSServiceDiscovery_handleReply
1010-000000000000521f T _DNSServiceEnumerateDomains
1111-0000000000002586 T _DNSServiceGetAddrInfo
1212-000000000000487b T _DNSServiceGetPID
1313-0000000000004704 T _DNSServiceGetProperty
1414-0000000000005c06 T _DNSServiceNATPortMappingCreate
1515-000000000000289d T _DNSServiceProcessResult
1616-0000000000003d07 T _DNSServiceQueryRecord
1717-00000000000058c7 T _DNSServiceReconfirmRecord
1818-000000000000300c T _DNSServiceRefDeallocate
1919-000000000000281c T _DNSServiceRefSockFD
2020-0000000000004db2 T _DNSServiceRegister
2121-000000000000343b T _DNSServiceRegisterRecord
2222-000000000000577a T _DNSServiceRemoveRecord
2323-0000000000004963 T _DNSServiceResolve
2424-0000000000004460 T _DNSServiceResolverResolve
2525-0000000000004cb9 T _DNSServiceSetDefaultDomainForUser
2626-00000000000026ee T _DNSServiceSetDispatchQueue
2727-0000000000005e3d T _DNSServiceSleepKeepalive
2828-0000000000005618 T _DNSServiceUpdateRecord
2929-0000000000005a9a T _PeerConnectionRelease
3030-00000000000042c0 T _TXTRecordContainsKey
3131-0000000000004024 T _TXTRecordCreate
3232-000000000000403c T _TXTRecordDeallocate
3333-00000000000042b7 T _TXTRecordGetBytesPtr
3434-0000000000004324 T _TXTRecordGetCount
3535-0000000000004350 T _TXTRecordGetItemAtIndex
3636-00000000000042ad T _TXTRecordGetLength
3737-00000000000042e1 T _TXTRecordGetValuePtr
3838-00000000000041cd T _TXTRecordRemoveValue
3939-0000000000004052 T _TXTRecordSetValue
4040-
···11-/*
22- This file is part of Darling.
33-44- Copyright (C) 2019 Lubos Dolezel
55-66- Darling is free software: you can redistribute it and/or modify
77- it under the terms of the GNU General Public License as published by
88- the Free Software Foundation, either version 3 of the License, or
99- (at your option) any later version.
1010-1111- Darling is distributed in the hope that it will be useful,
1212- but WITHOUT ANY WARRANTY; without even the implied warranty of
1313- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414- GNU General Public License for more details.
1515-1616- You should have received a copy of the GNU General Public License
1717- along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818-*/
1919-2020-2121-#ifndef _system_dnssd_H_
2222-#define _system_dnssd_H_
2323-2424-void* DNSServiceAddRecord(void);
2525-void* DNSServiceBrowse(void);
2626-void* DNSServiceBrowserCreate(void);
2727-void* DNSServiceConstructFullName(void);
2828-void* DNSServiceCreateConnection(void);
2929-void* DNSServiceCreateDelegateConnection(void);
3030-void* DNSServiceDiscoveryDeallocate(void);
3131-void* DNSServiceDiscoveryMachPort(void);
3232-void* DNSServiceDiscovery_handleReply(void);
3333-void* DNSServiceEnumerateDomains(void);
3434-void* DNSServiceGetAddrInfo(void);
3535-void* DNSServiceGetPID(void);
3636-void* DNSServiceGetProperty(void);
3737-void* DNSServiceNATPortMappingCreate(void);
3838-void* DNSServiceProcessResult(void);
3939-void* DNSServiceQueryRecord(void);
4040-void* DNSServiceReconfirmRecord(void);
4141-void* DNSServiceRefDeallocate(void);
4242-void* DNSServiceRefSockFD(void);
4343-void* DNSServiceRegister(void);
4444-void* DNSServiceRegisterRecord(void);
4545-void* DNSServiceRemoveRecord(void);
4646-void* DNSServiceResolve(void);
4747-void* DNSServiceResolverResolve(void);
4848-void* DNSServiceSetDefaultDomainForUser(void);
4949-void* DNSServiceSetDispatchQueue(void);
5050-void* DNSServiceSleepKeepalive(void);
5151-void* DNSServiceUpdateRecord(void);
5252-void* PeerConnectionRelease(void);
5353-void* TXTRecordContainsKey(void);
5454-void* TXTRecordCreate(void);
5555-void* TXTRecordDeallocate(void);
5656-void* TXTRecordGetBytesPtr(void);
5757-void* TXTRecordGetCount(void);
5858-void* TXTRecordGetItemAtIndex(void);
5959-void* TXTRecordGetLength(void);
6060-void* TXTRecordGetValuePtr(void);
6161-void* TXTRecordRemoveValue(void);
6262-void* TXTRecordSetValue(void);
6363-6464-#endif
-259
src/lib/system/dnssd/src/system_dnssd.c
···11-/*
22- This file is part of Darling.
33-44- Copyright (C) 2019 Lubos Dolezel
55-66- Darling is free software: you can redistribute it and/or modify
77- it under the terms of the GNU General Public License as published by
88- the Free Software Foundation, either version 3 of the License, or
99- (at your option) any later version.
1010-1111- Darling is distributed in the hope that it will be useful,
1212- but WITHOUT ANY WARRANTY; without even the implied warranty of
1313- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414- GNU General Public License for more details.
1515-1616- You should have received a copy of the GNU General Public License
1717- along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818-*/
1919-2020-2121-#include <system_dnssd/system_dnssd.h>
2222-#include <stdlib.h>
2323-#include <stdio.h>
2424-2525-static int verbose = 1;
2626-2727-void* DNSServiceAddRecord(void)
2828-{
2929- if (verbose) puts("STUB: DNSServiceAddRecord called");
3030- return NULL;
3131-}
3232-3333-void* DNSServiceBrowse(void)
3434-{
3535- if (verbose) puts("STUB: DNSServiceBrowse called");
3636- return NULL;
3737-}
3838-3939-void* DNSServiceBrowserCreate(void)
4040-{
4141- if (verbose) puts("STUB: DNSServiceBrowserCreate called");
4242- return NULL;
4343-}
4444-4545-void* DNSServiceConstructFullName(void)
4646-{
4747- if (verbose) puts("STUB: DNSServiceConstructFullName called");
4848- return NULL;
4949-}
5050-5151-void* DNSServiceCreateConnection(void)
5252-{
5353- if (verbose) puts("STUB: DNSServiceCreateConnection called");
5454- return NULL;
5555-}
5656-5757-void* DNSServiceCreateDelegateConnection(void)
5858-{
5959- if (verbose) puts("STUB: DNSServiceCreateDelegateConnection called");
6060- return NULL;
6161-}
6262-6363-void* DNSServiceDiscoveryDeallocate(void)
6464-{
6565- if (verbose) puts("STUB: DNSServiceDiscoveryDeallocate called");
6666- return NULL;
6767-}
6868-6969-void* DNSServiceDiscoveryMachPort(void)
7070-{
7171- if (verbose) puts("STUB: DNSServiceDiscoveryMachPort called");
7272- return NULL;
7373-}
7474-7575-void* DNSServiceDiscovery_handleReply(void)
7676-{
7777- if (verbose) puts("STUB: DNSServiceDiscovery_handleReply called");
7878- return NULL;
7979-}
8080-8181-void* DNSServiceEnumerateDomains(void)
8282-{
8383- if (verbose) puts("STUB: DNSServiceEnumerateDomains called");
8484- return NULL;
8585-}
8686-8787-void* DNSServiceGetAddrInfo(void)
8888-{
8989- if (verbose) puts("STUB: DNSServiceGetAddrInfo called");
9090- return NULL;
9191-}
9292-9393-void* DNSServiceGetPID(void)
9494-{
9595- if (verbose) puts("STUB: DNSServiceGetPID called");
9696- return NULL;
9797-}
9898-9999-void* DNSServiceGetProperty(void)
100100-{
101101- if (verbose) puts("STUB: DNSServiceGetProperty called");
102102- return NULL;
103103-}
104104-105105-void* DNSServiceNATPortMappingCreate(void)
106106-{
107107- if (verbose) puts("STUB: DNSServiceNATPortMappingCreate called");
108108- return NULL;
109109-}
110110-111111-void* DNSServiceProcessResult(void)
112112-{
113113- if (verbose) puts("STUB: DNSServiceProcessResult called");
114114- return NULL;
115115-}
116116-117117-void* DNSServiceQueryRecord(void)
118118-{
119119- if (verbose) puts("STUB: DNSServiceQueryRecord called");
120120- return NULL;
121121-}
122122-123123-void* DNSServiceReconfirmRecord(void)
124124-{
125125- if (verbose) puts("STUB: DNSServiceReconfirmRecord called");
126126- return NULL;
127127-}
128128-129129-void* DNSServiceRefDeallocate(void)
130130-{
131131- if (verbose) puts("STUB: DNSServiceRefDeallocate called");
132132- return NULL;
133133-}
134134-135135-void* DNSServiceRefSockFD(void)
136136-{
137137- if (verbose) puts("STUB: DNSServiceRefSockFD called");
138138- return NULL;
139139-}
140140-141141-void* DNSServiceRegister(void)
142142-{
143143- if (verbose) puts("STUB: DNSServiceRegister called");
144144- return NULL;
145145-}
146146-147147-void* DNSServiceRegisterRecord(void)
148148-{
149149- if (verbose) puts("STUB: DNSServiceRegisterRecord called");
150150- return NULL;
151151-}
152152-153153-void* DNSServiceRemoveRecord(void)
154154-{
155155- if (verbose) puts("STUB: DNSServiceRemoveRecord called");
156156- return NULL;
157157-}
158158-159159-void* DNSServiceResolve(void)
160160-{
161161- if (verbose) puts("STUB: DNSServiceResolve called");
162162- return NULL;
163163-}
164164-165165-void* DNSServiceResolverResolve(void)
166166-{
167167- if (verbose) puts("STUB: DNSServiceResolverResolve called");
168168- return NULL;
169169-}
170170-171171-void* DNSServiceSetDefaultDomainForUser(void)
172172-{
173173- if (verbose) puts("STUB: DNSServiceSetDefaultDomainForUser called");
174174- return NULL;
175175-}
176176-177177-void* DNSServiceSetDispatchQueue(void)
178178-{
179179- if (verbose) puts("STUB: DNSServiceSetDispatchQueue called");
180180- return NULL;
181181-}
182182-183183-void* DNSServiceSleepKeepalive(void)
184184-{
185185- if (verbose) puts("STUB: DNSServiceSleepKeepalive called");
186186- return NULL;
187187-}
188188-189189-void* DNSServiceUpdateRecord(void)
190190-{
191191- if (verbose) puts("STUB: DNSServiceUpdateRecord called");
192192- return NULL;
193193-}
194194-195195-void* PeerConnectionRelease(void)
196196-{
197197- if (verbose) puts("STUB: PeerConnectionRelease called");
198198- return NULL;
199199-}
200200-201201-void* TXTRecordContainsKey(void)
202202-{
203203- if (verbose) puts("STUB: TXTRecordContainsKey called");
204204- return NULL;
205205-}
206206-207207-void* TXTRecordCreate(void)
208208-{
209209- if (verbose) puts("STUB: TXTRecordCreate called");
210210- return NULL;
211211-}
212212-213213-void* TXTRecordDeallocate(void)
214214-{
215215- if (verbose) puts("STUB: TXTRecordDeallocate called");
216216- return NULL;
217217-}
218218-219219-void* TXTRecordGetBytesPtr(void)
220220-{
221221- if (verbose) puts("STUB: TXTRecordGetBytesPtr called");
222222- return NULL;
223223-}
224224-225225-void* TXTRecordGetCount(void)
226226-{
227227- if (verbose) puts("STUB: TXTRecordGetCount called");
228228- return NULL;
229229-}
230230-231231-void* TXTRecordGetItemAtIndex(void)
232232-{
233233- if (verbose) puts("STUB: TXTRecordGetItemAtIndex called");
234234- return NULL;
235235-}
236236-237237-void* TXTRecordGetLength(void)
238238-{
239239- if (verbose) puts("STUB: TXTRecordGetLength called");
240240- return NULL;
241241-}
242242-243243-void* TXTRecordGetValuePtr(void)
244244-{
245245- if (verbose) puts("STUB: TXTRecordGetValuePtr called");
246246- return NULL;
247247-}
248248-249249-void* TXTRecordRemoveValue(void)
250250-{
251251- if (verbose) puts("STUB: TXTRecordRemoveValue called");
252252- return NULL;
253253-}
254254-255255-void* TXTRecordSetValue(void)
256256-{
257257- if (verbose) puts("STUB: TXTRecordSetValue called");
258258- return NULL;
259259-}