Mercurial > pidgin.yaz
view libpurple/protocols/bonjour/dns_sd_proxy.h @ 20357:d8a47f12a3c4
applied changes from c6a89223516b0abb6cbb399c2066e3b6a7b69d19
through 63a37bce425022f4c52fab82e7169ed73f50a49e
applied changes from 63a37bce425022f4c52fab82e7169ed73f50a49e
through 8d61a119c53ac77e595d5ec300d30482b914bdf7
applied changes from 8d61a119c53ac77e595d5ec300d30482b914bdf7
through 300feed94260af48cd2026be3fd424eeb742fb77
applied changes from 300feed94260af48cd2026be3fd424eeb742fb77
through 39954083d38f554f75dac0d4fe8b2f7bac3cd0c8
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 21 Oct 2007 04:59:23 +0000 |
parents | c2d3c9fc71b5 |
children | 53691c081eab |
line wrap: on
line source
#ifndef _DNS_SD_PROXY #define _DNS_SD_PROXY #include <stdint.h> /* fixup to make pidgin compile against win32 bonjour */ #ifdef _WIN32 #define _MSL_STDINT_H #endif #include <dns_sd.h> gboolean dns_sd_available(void); #ifndef LINK_DNS_SD_DIRECTLY DNSServiceErrorType _wpurple_DNSServiceAddRecord(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl); #define DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl) \ _wpurple_DNSServiceAddRecord(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl) DNSServiceErrorType _wpurple_DNSServiceBrowse(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context); #define DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context) \ _wpurple_DNSServiceBrowse(sdRef, flags, interfaceIndex, regtype, domain, callBack, context) int _wpurple_DNSServiceConstructFullName(char *fullName, const char *service, const char *regtype, const char *domain); #define DNSServiceConstructFullName(fullName, service, regtype, domain) \ _wpurple_DNSServiceConstructFullName(fullName, service, regtype, domain) DNSServiceErrorType _wpurple_DNSServiceProcessResult(DNSServiceRef sdRef); #define DNSServiceProcessResult(sdRef) \ _wpurple_DNSServiceProcessResult(sdRef); DNSServiceErrorType _wpurple_DNSServiceQueryRecord(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context); #define DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context) \ _wpurple_DNSServiceQueryRecord(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context) void _wpurple_DNSServiceRefDeallocate(DNSServiceRef sdRef); #define DNSServiceRefDeallocate(sdRef) \ _wpurple_DNSServiceRefDeallocate(sdRef) int _wpurple_DNSServiceRefSockFD(DNSServiceRef sdRef); #define DNSServiceRefSockFD(sdRef) \ _wpurple_DNSServiceRefSockFD(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); #define DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context) \ _wpurple_DNSServiceRegister(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context) DNSServiceErrorType _wpurple_DNSServiceResolve(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context); #define DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context) \ _wpurple_DNSServiceResolve(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context) DNSServiceErrorType _wpurple_DNSServiceRemoveRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags); #define DNSServiceRemoveRecord(sdRef, RecordRef, flags) \ _wpurple_DNSServiceRemoveRecord(sdRef, RecordRef, flags) DNSServiceErrorType _wpurple_DNSServiceUpdateRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl); #define DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl) \ _wpurple_DNSServiceUpdateRecord(sdRef, RecordRef, flags, rdlen, rdata, ttl) void _wpurple_TXTRecordCreate(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer); #define TXTRecordCreate(txtRecord, bufferLen, buffer) \ _wpurple_TXTRecordCreate(txtRecord, bufferLen, buffer) void _wpurple_TXTRecordDeallocate(TXTRecordRef *txtRecord); #define TXTRecordDeallocate(txtRecord) \ _wpurple_TXTRecordDeallocate(txtRecord) const void * _wpurple_TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord); #define TXTRecordGetBytesPtr(txtRecord) \ _wpurple_TXTRecordGetBytesPtr(txtRecord) uint16_t _wpurple_TXTRecordGetLength(const TXTRecordRef *txtRecord); #define TXTRecordGetLength(txtRecord) \ _wpurple_TXTRecordGetLength(txtRecord) const void * _wpurple_TXTRecordGetValuePtr(uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen); #define TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen) \ _wpurple_TXTRecordGetValuePtr(txtLen, txtRecord, key, valueLen) DNSServiceErrorType _wpurple_TXTRecordSetValue(TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value); #define TXTRecordSetValue(txtRecord, key, valueSize, value) \ _wpurple_TXTRecordSetValue(txtRecord, key, valueSize, value) #endif /*LINK_DNS_SD_DIRECTLY*/ #endif