mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 23:47:16 +08:00
mDNS: mDNSShared/dnssd_clientshim.c
Fix typos. Include missing header files.
This commit is contained in:
parent
406a2f4c8a
commit
7222726e83
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "dns_sd.h" // Defines the interface to the client layer above
|
#include "dns_sd.h" // Defines the interface to the client layer above
|
||||||
#include "mDNSEmbeddedAPI.h" // The interface we're building on top of
|
#include "mDNSEmbeddedAPI.h" // The interface we're building on top of
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
extern mDNS mDNSStorage; // We need to pass the address of this storage to the lower-layer functions
|
extern mDNS mDNSStorage; // We need to pass the address of this storage to the lower-layer functions
|
||||||
|
|
||||||
#if MDNS_BUILDINGSHAREDLIBRARY || MDNS_BUILDINGSTUBLIBRARY
|
#if MDNS_BUILDINGSHAREDLIBRARY || MDNS_BUILDINGSTUBLIBRARY
|
||||||
@ -68,6 +70,14 @@ typedef struct
|
|||||||
DNSQuestion q;
|
DNSQuestion q;
|
||||||
} mDNS_DirectOP_Browse;
|
} mDNS_DirectOP_Browse;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
mDNS_DirectOP_Dispose *disposefn;
|
||||||
|
DNSServiceRef aQuery;
|
||||||
|
DNSServiceGetAddrInfoReply callback;
|
||||||
|
void *context;
|
||||||
|
} mDNS_DirectOP_GetAddrInfo;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
mDNS_DirectOP_Dispose *disposefn;
|
mDNS_DirectOP_Dispose *disposefn;
|
||||||
@ -674,7 +684,7 @@ DNSServiceErrorType DNSServiceQueryRecord
|
|||||||
x->q.ExpectUnique = mDNSfalse;
|
x->q.ExpectUnique = mDNSfalse;
|
||||||
x->q.ForceMCast = (flags & kDNSServiceFlagsForceMulticast) != 0;
|
x->q.ForceMCast = (flags & kDNSServiceFlagsForceMulticast) != 0;
|
||||||
x->q.ReturnIntermed = (flags & kDNSServiceFlagsReturnIntermediates) != 0;
|
x->q.ReturnIntermed = (flags & kDNSServiceFlagsReturnIntermediates) != 0;
|
||||||
x->q.SuppressUnsable = (flags & kDNSServiceFlagsSuppressUnusable) != 0;
|
x->q.SuppressUnusable = (flags & kDNSServiceFlagsSuppressUnusable) != 0;
|
||||||
x->q.SearchListIndex = 0;
|
x->q.SearchListIndex = 0;
|
||||||
x->q.AppendSearchDomains = 0;
|
x->q.AppendSearchDomains = 0;
|
||||||
x->q.RetryWithSearchDomains = mDNSfalse;
|
x->q.RetryWithSearchDomains = mDNSfalse;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user