diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-08-29 21:22:24 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-08-29 21:22:24 +0200 |
commit | a689165b5a140cd7d5fdd63cacf8fce2f275033d (patch) | |
tree | bddd3f2e20383f329b59c17fde50c43596aac0e5 /udev | |
parent | 2bb9f412bcd8596d4e8c0197e85c9e4647212674 (diff) |
libudev: require LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
Diffstat (limited to 'udev')
-rw-r--r-- | udev/lib/Makefile.am | 3 | ||||
-rw-r--r-- | udev/lib/libudev.h | 5 |
2 files changed, 7 insertions, 1 deletions
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; |