diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-26 21:27:40 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-26 21:27:40 +0000 |
commit | 854f901f491ccda79aee11edc3d59109cb229d28 (patch) | |
tree | cfaf27b1e11af5c7504e6825e205d9d1ed2c6035 /avahi-compat-libdns_sd/unsupported.c | |
parent | 740bc001fb647255709b5385d5a8a19781722097 (diff) |
* avahi-utils: replace python avahi-browse with a version written in C.
* remove -Wunused from GCC command line and use "unused" attribute instead
* remove AVAHI_CLIENT_S_FAILURE and AVAHI_CLIENT_S_INVALID since these event's are never forwarded to the client anyway
* make use of AVAHI_GCC_NORETURN
* really send eror code with StateChange DBUS signals
* ignore EINTR in avahi_simple_poll_loop()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@879 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-compat-libdns_sd/unsupported.c')
-rw-r--r-- | avahi-compat-libdns_sd/unsupported.c | 90 |
1 files changed, 46 insertions, 44 deletions
diff --git a/avahi-compat-libdns_sd/unsupported.c b/avahi-compat-libdns_sd/unsupported.c index 73e4697..0e08ad6 100644 --- a/avahi-compat-libdns_sd/unsupported.c +++ b/avahi-compat-libdns_sd/unsupported.c @@ -23,22 +23,24 @@ #include <config.h> #endif +#include <avahi-common/gccmacro.h> + #include "dns_sd.h" #include "warn.h" DNSServiceErrorType DNSSD_API DNSServiceRegisterRecord ( - DNSServiceRef sdRef, - DNSRecordRef *RecordRef, - DNSServiceFlags flags, - uint32_t interfaceIndex, - const char *fullname, - uint16_t rrtype, - uint16_t rrclass, - uint16_t rdlen, - const void *rdata, - uint32_t ttl, - DNSServiceRegisterRecordReply callBack, - void *context) { + AVAHI_GCC_UNUSED DNSServiceRef sdRef, + AVAHI_GCC_UNUSED DNSRecordRef *RecordRef, + AVAHI_GCC_UNUSED DNSServiceFlags flags, + AVAHI_GCC_UNUSED uint32_t interfaceIndex, + AVAHI_GCC_UNUSED const char *fullname, + AVAHI_GCC_UNUSED uint16_t rrtype, + AVAHI_GCC_UNUSED uint16_t rrclass, + AVAHI_GCC_UNUSED uint16_t rdlen, + AVAHI_GCC_UNUSED const void *rdata, + AVAHI_GCC_UNUSED uint32_t ttl, + AVAHI_GCC_UNUSED DNSServiceRegisterRecordReply callBack, + AVAHI_GCC_UNUSED void *context) { AVAHI_WARN_UNSUPPORTED; @@ -46,14 +48,14 @@ DNSServiceErrorType DNSSD_API DNSServiceRegisterRecord ( } DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( - DNSServiceRef *sdRef, - DNSServiceFlags flags, - uint32_t interfaceIndex, - const char *fullname, - uint16_t rrtype, - uint16_t rrclass, - DNSServiceQueryRecordReply callBack, - void *context) { + AVAHI_GCC_UNUSED DNSServiceRef *sdRef, + AVAHI_GCC_UNUSED DNSServiceFlags flags, + AVAHI_GCC_UNUSED uint32_t interfaceIndex, + AVAHI_GCC_UNUSED const char *fullname, + AVAHI_GCC_UNUSED uint16_t rrtype, + AVAHI_GCC_UNUSED uint16_t rrclass, + AVAHI_GCC_UNUSED DNSServiceQueryRecordReply callBack, + AVAHI_GCC_UNUSED void *context) { AVAHI_WARN_UNSUPPORTED; @@ -61,33 +63,33 @@ DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( } void DNSSD_API DNSServiceReconfirmRecord ( - DNSServiceFlags flags, - uint32_t interfaceIndex, - const char *fullname, - uint16_t rrtype, - uint16_t rrclass, - uint16_t rdlen, - const void *rdata) { + AVAHI_GCC_UNUSED DNSServiceFlags flags, + AVAHI_GCC_UNUSED uint32_t interfaceIndex, + AVAHI_GCC_UNUSED const char *fullname, + AVAHI_GCC_UNUSED uint16_t rrtype, + AVAHI_GCC_UNUSED uint16_t rrclass, + AVAHI_GCC_UNUSED uint16_t rdlen, + AVAHI_GCC_UNUSED const void *rdata) { AVAHI_WARN_UNSUPPORTED; return; } -DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(DNSServiceRef *sdRef) { +DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(AVAHI_GCC_UNUSED DNSServiceRef *sdRef) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } DNSServiceErrorType DNSSD_API DNSServiceAddRecord( - DNSServiceRef sdRef, - DNSRecordRef *RecordRef, - DNSServiceFlags flags, - uint16_t rrtype, - uint16_t rdlen, - const void *rdata, - uint32_t ttl) { + AVAHI_GCC_UNUSED DNSServiceRef sdRef, + AVAHI_GCC_UNUSED DNSRecordRef *RecordRef, + AVAHI_GCC_UNUSED DNSServiceFlags flags, + AVAHI_GCC_UNUSED uint16_t rrtype, + AVAHI_GCC_UNUSED uint16_t rdlen, + AVAHI_GCC_UNUSED const void *rdata, + AVAHI_GCC_UNUSED uint32_t ttl) { AVAHI_WARN_UNSUPPORTED; @@ -95,12 +97,12 @@ DNSServiceErrorType DNSSD_API DNSServiceAddRecord( } DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord( - DNSServiceRef sdRef, - DNSRecordRef RecordRef, - DNSServiceFlags flags, - uint16_t rdlen, - const void *rdata, - uint32_t ttl) { + AVAHI_GCC_UNUSED DNSServiceRef sdRef, + AVAHI_GCC_UNUSED DNSRecordRef RecordRef, + AVAHI_GCC_UNUSED DNSServiceFlags flags, + AVAHI_GCC_UNUSED uint16_t rdlen, + AVAHI_GCC_UNUSED const void *rdata, + AVAHI_GCC_UNUSED uint32_t ttl) { AVAHI_WARN_UNSUPPORTED; @@ -108,9 +110,9 @@ DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord( } DNSServiceErrorType DNSSD_API DNSServiceRemoveRecord( - DNSServiceRef sdRef, - DNSRecordRef RecordRef, - DNSServiceFlags flags) { + AVAHI_GCC_UNUSED DNSServiceRef sdRef, + AVAHI_GCC_UNUSED DNSRecordRef RecordRef, + AVAHI_GCC_UNUSED DNSServiceFlags flags) { AVAHI_WARN_UNSUPPORTED; |