summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-12-21 19:00:19 -0500
committerDavid Zeuthen <davidz@redhat.com>2008-12-21 19:00:19 -0500
commit5d7d051bc4a88a1ca060fa8e6ef9813db1a8527b (patch)
tree7bb14211badcfa2eb3e79de4cd7a3b46fdba1b71
parent5692f323434c537b2655c786e6e77ef36f2fea40 (diff)
require that users define EGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE
-rw-r--r--src/eggdbus/Makefile.am2
-rw-r--r--src/eggdbus/eggdbus.h4
-rw-r--r--src/tests/Makefile.am1
3 files changed, 6 insertions, 1 deletions
diff --git a/src/eggdbus/Makefile.am b/src/eggdbus/Makefile.am
index 40bd751..013e3af 100644
--- a/src/eggdbus/Makefile.am
+++ b/src/eggdbus/Makefile.am
@@ -31,7 +31,7 @@ libeggdbus_common_la_SOURCES = \
eggdbushashmap.h eggdbushashmap.c \
eggdbuserror.h eggdbuserror.c \
eggdbusmisctypes.h eggdbusmisctypes.c \
- eggdbuobjectpath.h eggdbusobjectpath.c \
+ eggdbusobjectpath.h eggdbusobjectpath.c \
eggdbussignature.h eggdbussignature.c \
eggdbusstructure.h eggdbusstructure.c \
eggdbustypes.h eggdbustypes.c \
diff --git a/src/eggdbus/eggdbus.h b/src/eggdbus/eggdbus.h
index 1ea3d9e..5c415cc 100644
--- a/src/eggdbus/eggdbus.h
+++ b/src/eggdbus/eggdbus.h
@@ -22,6 +22,10 @@
#ifndef __EGG_DBUS_H
#define __EGG_DBUS_H
+#if !defined (EGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE) && !defined (_EGG_DBUS_COMPILATION)
+#error "EggDBus is unstable API and subject to change. You must define EGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE to acknowledge this before using EggDBus."
+#endif
+
#define _EGG_DBUS_INSIDE_EGG_DBUS_H 1
#include <eggdbus/eggdbustypes.h>
#include <eggdbus/eggdbusenumtypes.h>
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index eea4b4f..698e4b1 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -13,6 +13,7 @@ INCLUDES = \
-DPACKAGE_LIB_DIR=\""$(libdir)"\" \
-D_POSIX_PTHREAD_SEMANTICS \
-D_REENTRANT \
+ -DEGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE \
$(NULL)
###########################################################################