From a689165b5a140cd7d5fdd63cacf8fce2f275033d Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 29 Aug 2008 21:22:24 +0200 Subject: libudev: require LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE --- udev/lib/Makefile.am | 3 ++- udev/lib/libudev.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'udev/lib') diff --git a/udev/lib/Makefile.am b/udev/lib/Makefile.am index 430472735b..dadcd55f0f 100644 --- a/udev/lib/Makefile.am +++ b/udev/lib/Makefile.am @@ -1,6 +1,7 @@ AM_CPPFLAGS = \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ - -DUDEV_PREFIX=\""$(udev_prefix)"\" + -DUDEV_PREFIX=\""$(udev_prefix)"\" \ + -DLIBUDEV_COMPILATION noinst_PROGRAMS = \ test-libudev diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h index 1eb3745e6f..cd366c7dfc 100644 --- a/udev/lib/libudev.h +++ b/udev/lib/libudev.h @@ -20,6 +20,11 @@ #ifndef _LIBUDEV_H_ #define _LIBUDEV_H_ +/* this will stay as long as the DeviceKit integration of udev is work in progress */ +#if !defined LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE +#error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this experimental library version" +#endif + struct udev; struct udev_device; struct udev_monitor; -- cgit v1.2.3-54-g00ecf