diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-03 20:46:05 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-03 20:46:05 +0000 |
commit | f7ece52f5ba3633abf2515dcbc467ad6b80a447b (patch) | |
tree | 1d6a7216429418f2b5bf8d77f44c6d4231ef248f /compat-bonjour/warn.h | |
parent | 6c02b38b55f1ead652a63385f4314c9301352951 (diff) |
* Use a recursive mutex for locking DNSServiceRef
* Implement TXT* function
* Implement txt-test.c
* Print a warning to STDERR once when the compat layer is used
* Print a warning to STDERR when a non-implemented function is called
* Add Makefile support to compile Apple's dns-sd.c with our compat library (but don't include that file )
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@680 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'compat-bonjour/warn.h')
-rw-r--r-- | compat-bonjour/warn.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/compat-bonjour/warn.h b/compat-bonjour/warn.h new file mode 100644 index 0000000..b419cd8 --- /dev/null +++ b/compat-bonjour/warn.h @@ -0,0 +1,32 @@ +#ifndef foowarnhfoo +#define foowarnhfoo + +/* $Id$ */ + +/*** + This file is part of avahi. + + avahi is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + avahi is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General + Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with avahi; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +***/ + +void avahi_warn_unsupported(const char *function); + +void avahi_warn_linkage(void); + +#define AVAHI_WARN_LINKAGE { avahi_warn_linkage(); } +#define AVAHI_WARN_UNSUPPORTED { avahi_warn_linkage(); avahi_warn_unsupported(__FUNCTION__); } + +#endif |