summaryrefslogtreecommitdiffstats
path: root/avahi-common/cdecl.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-06-28 22:09:17 +0000
committerLennart Poettering <lennart@poettering.net>2005-06-28 22:09:17 +0000
commit14f8d9beb7ef14b0aab5512345e09109bdd8cb0c (patch)
tree83828a846e27bbdee70febaa58a85a65439052a2 /avahi-common/cdecl.h
parentf93c4009fd022577c8fe989343172b849e792aa2 (diff)
* recreate DNS query in simple protocol on host or domain name changes
* C++ compatibility git-svn-id: file:///home/lennart/svn/public/avahi/trunk@151 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/cdecl.h')
-rw-r--r--avahi-common/cdecl.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/avahi-common/cdecl.h b/avahi-common/cdecl.h
new file mode 100644
index 0000000..82c687d
--- /dev/null
+++ b/avahi-common/cdecl.h
@@ -0,0 +1,40 @@
+#ifndef foocdeclhfoo
+#define foocdeclhfoo
+
+/* $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.
+***/
+
+
+#ifdef __cplusplus
+/** If using C++ this macro enables C mode, otherwise does nothing */
+#define AVAHI_C_DECL_BEGIN extern "C" {
+/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
+#define AVAHI_C_DECL_END }
+
+#else
+/** If using C++ this macro enables C mode, otherwise does nothing */
+#define AVAHI_C_DECL_BEGIN
+/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
+#define AVAHI_C_DECL_END
+
+#endif
+
+#endif