pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns_sd_proxy.c File Reference
#include "win32dep.h"
#include "dns_sd_proxy.h"
Include dependency graph for dns_sd_proxy.c:

Go to the source code of this file.

Functions

gboolean dns_sd_available (void)
 
DNSServiceErrorType _wpurple_DNSServiceAddRecord (DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl)
 
DNSServiceErrorType _wpurple_DNSServiceBrowse (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context)
 
int _wpurple_DNSServiceConstructFullName (char *fullName, const char *service, const char *regtype, const char *domain)
 
DNSServiceErrorType _wpurple_DNSServiceGetAddrInfo (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceProtocol protocol, const char *hostname, DNSServiceGetAddrInfoReply callBack, void *context)
 
DNSServiceErrorType _wpurple_DNSServiceProcessResult (DNSServiceRef sdRef)
 
DNSServiceErrorType _wpurple_DNSServiceQueryRecord (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context)
 
void _wpurple_DNSServiceRefDeallocate (DNSServiceRef sdRef)
 
int _wpurple_DNSServiceRefSockFD (DNSServiceRef sdRef)
 
DNSServiceErrorType _wpurple_DNSServiceRegister (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen, const void *txtRecord, DNSServiceRegisterReply callBack, void *context)
 
DNSServiceErrorType _wpurple_DNSServiceResolve (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context)
 
DNSServiceErrorType _wpurple_DNSServiceRemoveRecord (DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags)
 
DNSServiceErrorType _wpurple_DNSServiceUpdateRecord (DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl)
 
void _wpurple_TXTRecordCreate (TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer)
 
void _wpurple_TXTRecordDeallocate (TXTRecordRef *txtRecord)
 
const void * _wpurple_TXTRecordGetBytesPtr (const TXTRecordRef *txtRecord)
 
uint16_t _wpurple_TXTRecordGetLength (const TXTRecordRef *txtRecord)
 
const void * _wpurple_TXTRecordGetValuePtr (uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen)
 
DNSServiceErrorType _wpurple_TXTRecordSetValue (TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value)
 

Variables

static DNSServiceErrorType(* _DNSServiceAddRecord )(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl)
 
static DNSServiceErrorType(* _DNSServiceBrowse )(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context)
 
static int(* _DNSServiceConstructFullName )(char *fullName, const char *service, const char *regtype, const char *domain)
 
static DNSServiceErrorType(* _DNSServiceGetAddrInfo )(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceProtocol protocol, const char *hostname, DNSServiceGetAddrInfoReply callBack, void *context)
 
static DNSServiceErrorType(* _DNSServiceProcessResult )(DNSServiceRef sdRef)
 
static DNSServiceErrorType(* _DNSServiceQueryRecord )(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context)
 
static void(* _DNSServiceRefDeallocate )(DNSServiceRef sdRef)
 
static int(* _DNSServiceRefSockFD )(DNSServiceRef sdRef)
 
static DNSServiceErrorType(* _DNSServiceRegister )(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen, const void *txtRecord, DNSServiceRegisterReply callBack, void *context)
 
static DNSServiceErrorType(* _DNSServiceResolve )(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context)
 
static DNSServiceErrorType(* _DNSServiceRemoveRecord )(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags)
 
static DNSServiceErrorType(* _DNSServiceUpdateRecord )(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl)
 
static void(* _TXTRecordCreate )(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer)
 
static void(* _TXTRecordDeallocate )(TXTRecordRef *txtRecord)
 
static const void *(* _TXTRecordGetBytesPtr )(const TXTRecordRef *txtRecord)
 
static int16_t(* _TXTRecordGetLength )(const TXTRecordRef *txtRecord)
 
static const void *(* _TXTRecordGetValuePtr )(uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen)
 
static DNSServiceErrorType(* _TXTRecordSetValue )(TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value)
 

Function Documentation

◆ _wpurple_DNSServiceAddRecord()

DNSServiceErrorType _wpurple_DNSServiceAddRecord ( DNSServiceRef  sdRef,
DNSRecordRef RecordRef,
DNSServiceFlags  flags,
uint16_t  rrtype,
uint16_t  rdlen,
const void *  rdata,
uint32_t  ttl 
)

Definition at line 84 of file dns_sd_proxy.c.

References _DNSServiceAddRecord, flags, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_DNSServiceBrowse()

DNSServiceErrorType _wpurple_DNSServiceBrowse ( DNSServiceRef sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
const char *  regtype,
const char *  domain,
DNSServiceBrowseReply  callBack,
void *  context 
)

Definition at line 90 of file dns_sd_proxy.c.

References _DNSServiceBrowse, flags, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_DNSServiceConstructFullName()

int _wpurple_DNSServiceConstructFullName ( char *  fullName,
const char *  service,
const char *  regtype,
const char *  domain 
)

Definition at line 96 of file dns_sd_proxy.c.

References _DNSServiceConstructFullName, and NULL.

◆ _wpurple_DNSServiceGetAddrInfo()

DNSServiceErrorType _wpurple_DNSServiceGetAddrInfo ( DNSServiceRef sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
DNSServiceProtocol  protocol,
const char *  hostname,
DNSServiceGetAddrInfoReply  callBack,
void *  context 
)

Definition at line 101 of file dns_sd_proxy.c.

References _DNSServiceGetAddrInfo, flags, and NULL.

◆ _wpurple_DNSServiceProcessResult()

DNSServiceErrorType _wpurple_DNSServiceProcessResult ( DNSServiceRef  sdRef)

Definition at line 107 of file dns_sd_proxy.c.

References _DNSServiceProcessResult, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_DNSServiceQueryRecord()

DNSServiceErrorType _wpurple_DNSServiceQueryRecord ( DNSServiceRef sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
const char *  fullname,
uint16_t  rrtype,
uint16_t  rrclass,
DNSServiceQueryRecordReply  callBack,
void *  context 
)

Definition at line 113 of file dns_sd_proxy.c.

References _DNSServiceQueryRecord, flags, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_DNSServiceRefDeallocate()

void _wpurple_DNSServiceRefDeallocate ( DNSServiceRef  sdRef)

Definition at line 119 of file dns_sd_proxy.c.

References _DNSServiceRefDeallocate, and NULL.

◆ _wpurple_DNSServiceRefSockFD()

int _wpurple_DNSServiceRefSockFD ( DNSServiceRef  sdRef)

Definition at line 124 of file dns_sd_proxy.c.

References _DNSServiceRefSockFD, and NULL.

◆ _wpurple_DNSServiceRegister()

DNSServiceErrorType _wpurple_DNSServiceRegister ( DNSServiceRef sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
const char *  name,
const char *  regtype,
const char *  domain,
const char *  host,
uint16_t  port,
uint16_t  txtLen,
const void *  txtRecord,
DNSServiceRegisterReply  callBack,
void *  context 
)

Definition at line 129 of file dns_sd_proxy.c.

References _DNSServiceRegister, flags, host, kDNSServiceErr_Unknown, name, and NULL.

◆ _wpurple_DNSServiceRemoveRecord()

DNSServiceErrorType _wpurple_DNSServiceRemoveRecord ( DNSServiceRef  sdRef,
DNSRecordRef  RecordRef,
DNSServiceFlags  flags 
)

Definition at line 142 of file dns_sd_proxy.c.

References _DNSServiceRemoveRecord, flags, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_DNSServiceResolve()

DNSServiceErrorType _wpurple_DNSServiceResolve ( DNSServiceRef sdRef,
DNSServiceFlags  flags,
uint32_t  interfaceIndex,
const char *  name,
const char *  regtype,
const char *  domain,
DNSServiceResolveReply  callBack,
void *  context 
)

Definition at line 136 of file dns_sd_proxy.c.

References _DNSServiceResolve, flags, kDNSServiceErr_Unknown, name, and NULL.

◆ _wpurple_DNSServiceUpdateRecord()

DNSServiceErrorType _wpurple_DNSServiceUpdateRecord ( DNSServiceRef  sdRef,
DNSRecordRef  RecordRef,
DNSServiceFlags  flags,
uint16_t  rdlen,
const void *  rdata,
uint32_t  ttl 
)

Definition at line 147 of file dns_sd_proxy.c.

References _DNSServiceUpdateRecord, flags, kDNSServiceErr_Unknown, and NULL.

◆ _wpurple_TXTRecordCreate()

void _wpurple_TXTRecordCreate ( TXTRecordRef txtRecord,
uint16_t  bufferLen,
void *  buffer 
)

Definition at line 153 of file dns_sd_proxy.c.

References _TXTRecordCreate, and NULL.

◆ _wpurple_TXTRecordDeallocate()

void _wpurple_TXTRecordDeallocate ( TXTRecordRef txtRecord)

Definition at line 158 of file dns_sd_proxy.c.

References _TXTRecordDeallocate, and NULL.

◆ _wpurple_TXTRecordGetBytesPtr()

const void* _wpurple_TXTRecordGetBytesPtr ( const TXTRecordRef txtRecord)

Definition at line 163 of file dns_sd_proxy.c.

References _TXTRecordGetBytesPtr, and NULL.

◆ _wpurple_TXTRecordGetLength()

uint16_t _wpurple_TXTRecordGetLength ( const TXTRecordRef txtRecord)

Definition at line 168 of file dns_sd_proxy.c.

References _TXTRecordGetLength, and NULL.

◆ _wpurple_TXTRecordGetValuePtr()

const void* _wpurple_TXTRecordGetValuePtr ( uint16_t  txtLen,
const void *  txtRecord,
const char *  key,
uint8_t *  valueLen 
)

Definition at line 173 of file dns_sd_proxy.c.

References _TXTRecordGetValuePtr, and NULL.

◆ _wpurple_TXTRecordSetValue()

DNSServiceErrorType _wpurple_TXTRecordSetValue ( TXTRecordRef txtRecord,
const char *  key,
uint8_t  valueSize,
const void *  value 
)

Definition at line 178 of file dns_sd_proxy.c.

References _TXTRecordSetValue, kDNSServiceErr_Unknown, NULL, and value.

◆ dns_sd_available()

Variable Documentation

◆ _DNSServiceAddRecord

DNSServiceErrorType( * _DNSServiceAddRecord) (DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl)
static

Definition at line 25 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceAddRecord(), and dns_sd_available().

◆ _DNSServiceBrowse

DNSServiceErrorType( * _DNSServiceBrowse) (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context)
static

Definition at line 27 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceBrowse(), and dns_sd_available().

◆ _DNSServiceConstructFullName

int( * _DNSServiceConstructFullName) (char *fullName, const char *service, const char *regtype, const char *domain)
static

Definition at line 29 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceConstructFullName(), and dns_sd_available().

◆ _DNSServiceGetAddrInfo

DNSServiceErrorType( * _DNSServiceGetAddrInfo) (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceProtocol protocol, const char *hostname, DNSServiceGetAddrInfoReply callBack, void *context)
static

Definition at line 30 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceGetAddrInfo(), and dns_sd_available().

◆ _DNSServiceProcessResult

DNSServiceErrorType( * _DNSServiceProcessResult) (DNSServiceRef sdRef)
static

Definition at line 32 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceProcessResult(), and dns_sd_available().

◆ _DNSServiceQueryRecord

DNSServiceErrorType( * _DNSServiceQueryRecord) (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context)
static

Definition at line 33 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceQueryRecord(), and dns_sd_available().

◆ _DNSServiceRefDeallocate

void( * _DNSServiceRefDeallocate) (DNSServiceRef sdRef)
static

Definition at line 35 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceRefDeallocate(), and dns_sd_available().

◆ _DNSServiceRefSockFD

int( * _DNSServiceRefSockFD) (DNSServiceRef sdRef)
static

Definition at line 36 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceRefSockFD(), and dns_sd_available().

◆ _DNSServiceRegister

DNSServiceErrorType( * _DNSServiceRegister) (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen, const void *txtRecord, DNSServiceRegisterReply callBack, void *context)
static

Definition at line 37 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceRegister(), and dns_sd_available().

◆ _DNSServiceRemoveRecord

DNSServiceErrorType( * _DNSServiceRemoveRecord) (DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags)
static

Definition at line 42 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceRemoveRecord(), and dns_sd_available().

◆ _DNSServiceResolve

DNSServiceErrorType( * _DNSServiceResolve) (DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context)
static

Definition at line 40 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceResolve(), and dns_sd_available().

◆ _DNSServiceUpdateRecord

DNSServiceErrorType( * _DNSServiceUpdateRecord) (DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl)
static

Definition at line 43 of file dns_sd_proxy.c.

Referenced by _wpurple_DNSServiceUpdateRecord(), and dns_sd_available().

◆ _TXTRecordCreate

void( * _TXTRecordCreate) (TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer)
static

Definition at line 45 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordCreate(), and dns_sd_available().

◆ _TXTRecordDeallocate

void( * _TXTRecordDeallocate) (TXTRecordRef *txtRecord)
static

Definition at line 46 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordDeallocate(), and dns_sd_available().

◆ _TXTRecordGetBytesPtr

const void*( * _TXTRecordGetBytesPtr) (const TXTRecordRef *txtRecord)
static

Definition at line 47 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordGetBytesPtr(), and dns_sd_available().

◆ _TXTRecordGetLength

int16_t( * _TXTRecordGetLength) (const TXTRecordRef *txtRecord)
static

Definition at line 48 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordGetLength(), and dns_sd_available().

◆ _TXTRecordGetValuePtr

const void*( * _TXTRecordGetValuePtr) (uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen)
static

Definition at line 49 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordGetValuePtr(), and dns_sd_available().

◆ _TXTRecordSetValue

DNSServiceErrorType( * _TXTRecordSetValue) (TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value)
static

Definition at line 50 of file dns_sd_proxy.c.

Referenced by _wpurple_TXTRecordSetValue(), and dns_sd_available().