]> err.no Git - systemd/commitdiff
libudev: move to top-level directory
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 8 Jun 2009 19:36:06 +0000 (21:36 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 8 Jun 2009 19:36:06 +0000 (21:36 +0200)
33 files changed:
Makefile.am
Makefile.am.inc
configure.ac
extras/ata_id/Makefile.am
extras/cdrom_id/Makefile.am
extras/collect/Makefile.am
extras/collect/collect.c
extras/edd_id/Makefile.am
extras/floppy/Makefile.am
extras/fstab_import/Makefile.am
extras/path_id/Makefile.am
extras/path_id/path_id.c
extras/scsi_id/Makefile.am
extras/usb_id/Makefile.am
libudev/.gitignore [moved from udev/lib/.gitignore with 100% similarity]
libudev/Makefile.am [moved from udev/lib/Makefile.am with 96% similarity]
libudev/exported_symbols [moved from udev/lib/exported_symbols with 100% similarity]
libudev/libudev-ctrl.c [moved from udev/lib/libudev-ctrl.c with 100% similarity]
libudev/libudev-device-db-write.c [moved from udev/lib/libudev-device-db-write.c with 100% similarity]
libudev/libudev-device.c [moved from udev/lib/libudev-device.c with 100% similarity]
libudev/libudev-enumerate.c [moved from udev/lib/libudev-enumerate.c with 100% similarity]
libudev/libudev-list.c [moved from udev/lib/libudev-list.c with 100% similarity]
libudev/libudev-monitor.c [moved from udev/lib/libudev-monitor.c with 100% similarity]
libudev/libudev-private.h [moved from udev/lib/libudev-private.h with 100% similarity]
libudev/libudev-queue-export.c [moved from udev/lib/libudev-queue-export.c with 100% similarity]
libudev/libudev-queue.c [moved from udev/lib/libudev-queue.c with 100% similarity]
libudev/libudev-util.c [moved from udev/lib/libudev-util.c with 100% similarity]
libudev/libudev.c [moved from udev/lib/libudev.c with 100% similarity]
libudev/libudev.h [moved from udev/lib/libudev.h with 96% similarity]
libudev/libudev.pc.in [moved from udev/lib/libudev.pc.in with 100% similarity]
libudev/test-libudev.c [moved from udev/lib/test-libudev.c with 100% similarity]
udev/Makefile.am
udev/udev.h

index 1bb2d7773b5ffd53f0290629a3191e734d09f87e..678a3e426acd156a24fe4defe03fe449649909e2 100644 (file)
@@ -1,6 +1,7 @@
 include $(top_srcdir)/Makefile.am.inc
 
 SUBDIRS = \
+       libudev \
        udev \
        rules \
        extras
index 7ecd55de78fe06e861ca570aadaf7dd8ce6afb69..802143bb6b14a3f734791185872a41d95753ddda 100644 (file)
@@ -1,8 +1,8 @@
 AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
+       -I$(top_builddir)/libudev \
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
-       -DUDEV_PREFIX=\""$(udev_prefix)"\" \
-       -D_LIBUDEV_COMPILATION
+       -DUDEV_PREFIX=\""$(udev_prefix)"\"
 
 AM_CFLAGS =
 
index 9857d52e4efa3aa538ba0214c73500490b261506..e9c949647abdc2a40673e9829e0b1a4cbaa4360d 100644 (file)
@@ -70,9 +70,9 @@ fi
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile
+       libudev/Makefile
+       libudev/libudev.pc
        udev/Makefile
-       udev/lib/Makefile
-       udev/lib/libudev.pc
        rules/Makefile
        extras/Makefile
        extras/ata_id/Makefile
index d31fd2c93c06a3c1acb277e43740edc0d97b98bf..ffbdba32f28e7c4a22634009d4d0c0fd9f174e61 100644 (file)
@@ -6,10 +6,10 @@ udevhome_PROGRAMS = \
 
 ata_id_SOURCES = \
        ata_id.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../udev/udev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
 dist_man_MANS = \
        ata_id.8
index 51b6a20ee238bc14e54b761f94ab4b009dd8b7de..8e1968e6e13e67e755bdaada16e8fc238e8b8b95 100644 (file)
@@ -10,10 +10,10 @@ dist_udevrules_DATA = \
 
 cdrom_id_SOURCES = \
        cdrom_id.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
 dist_man_MANS = \
        cdrom_id.8
index d9792b89ebf726c3bc73035213cc189871903868..7ad2937f5d6a8999f05839f65e4b6f9819d2d375 100644 (file)
@@ -6,7 +6,7 @@ udevhome_PROGRAMS = \
 
 collect_SOURCES = \
        collect.c \
-       ../../udev/lib/libudev-private.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-util.c \
-       ../../udev/lib/libudev-list.c
+       ../../libudev/libudev-private.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-util.c \
+       ../../libudev/libudev-list.c
index 3a7e826e4dfd0ce80b914cdfd0196d1cb66ce529..3284c3df40209a11cbe052fb188757f2f69d5391 100644 (file)
@@ -31,8 +31,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#include "../../udev/lib/libudev.h"
-#include "../../udev/lib/libudev-private.h"
+#include "libudev.h"
+#include "libudev-private.h"
 
 #define TMPFILE                        UDEV_PREFIX "/dev/.udev/collect"
 #define BUFSIZE                        16
index 9bfe43231f926d36d5265388c8924cec3c5ef498..7c562d3c31314a3dac5ee699a725f49f32e7fa94 100644 (file)
@@ -10,10 +10,10 @@ dist_udevrules_DATA = \
 
 edd_id_SOURCES = \
        edd_id.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
 dist_man_MANS = \
        edd_id.8
index 8cb9cbd47d75f29209d6203f3fe8e22a2bd9d9b0..2baaa10f022f8ecf474a62892873a7ee0661e918 100644 (file)
@@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
 
 create_floppy_devices_SOURCES = \
        create_floppy_devices.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c \
-       ../../udev/lib/libudev-device.c \
-       ../../udev/lib/libudev-enumerate.c \
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c \
+       ../../libudev/libudev-device.c \
+       ../../libudev/libudev-enumerate.c \
        ../../udev/udev-util.c
 
 if USE_SELINUX
index c63dc7cf178c8c557c96769869ffac5a22bd559c..42acfd15cfc3d2cfe9ecabf40f7b6afa766b1d78 100644 (file)
@@ -10,8 +10,8 @@ dist_udevrules_DATA = \
 
 fstab_import_SOURCES = \
        fstab_import.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
index 5d4bf6283d4fc6b52a51de0088e02cd3e3082c2c..867ad5ef8ed13d1cc7b81cff0a7825a76322af15 100644 (file)
@@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
 
 path_id_SOURCES = \
        path_id.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-device.c \
-       ../../udev/lib/libudev-enumerate.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-device.c \
+       ../../libudev/libudev-enumerate.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
 dist_man_MANS = \
        path_id.8
index 08b7e150c9dacfd37ad17111a7ec7b0e58c90dd2..dbb52bad2141ffc06308bbd45f5e5fe6ee980f8c 100644 (file)
@@ -28,8 +28,8 @@
 #include <dirent.h>
 #include <getopt.h>
 
-#include <../../udev/lib/libudev.h>
-#include <../../udev/udev.h>
+#include "libudev.h"
+#include "../../udev/udev.h"
 
 int debug;
 
@@ -366,7 +366,7 @@ int main(int argc, char **argv)
        if (udev == NULL)
                goto exit;
 
-       logging_init("usb_id");
+       logging_init("path_id");
        udev_set_log_fn(udev, log_fn);
 
        while (1) {
index 29d5fe7344174e62e2ca5d72e39c989f42f810f3..ffebc38e20a6690227a9b7f9651f3752e9450877 100644 (file)
@@ -10,10 +10,10 @@ scsi_id_SOURCES = \
        scsi.h \
        scsi_id.h \
        bsg.h \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c
 
 dist_sysconf_DATA = \
        scsi_id.config
index 07b286d61f3882e8b7a9052d6a0b64258366c15d..a9bd407031cfa7bc9caf25e491a035338e8b6eb2 100644 (file)
@@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
 
 usb_id_SOURCES = \
        usb_id.c \
-       ../../udev/lib/libudev.h \
-       ../../udev/lib/libudev.c \
-       ../../udev/lib/libudev-list.c \
-       ../../udev/lib/libudev-util.c \
-       ../../udev/lib/libudev-device.c \
-       ../../udev/lib/libudev-enumerate.c
+       ../../libudev/libudev.h \
+       ../../libudev/libudev.c \
+       ../../libudev/libudev-list.c \
+       ../../libudev/libudev-util.c \
+       ../../libudev/libudev-device.c \
+       ../../libudev/libudev-enumerate.c
 
 dist_man_MANS = \
        usb_id.8
similarity index 100%
rename from udev/lib/.gitignore
rename to libudev/.gitignore
similarity index 96%
rename from udev/lib/Makefile.am
rename to libudev/Makefile.am
index 7cd883302c17f37acb6f374af8611408aec180e4..1f0bf2f3ad3a37bab90767f127baf1d903b9effc 100644 (file)
@@ -28,7 +28,7 @@ libudev_la_SOURCES =\
 
 libudev_la_LDFLAGS = \
        -version-info $(LIBUDEV_LT_CURRENT):$(LIBUDEV_LT_REVISION):$(LIBUDEV_LT_AGE) \
-       -export-symbols $(top_srcdir)/udev/lib/exported_symbols
+       -export-symbols $(top_srcdir)/libudev/exported_symbols
 
 pkgconfigdir = $(prefix)/$(libdir_name)/pkgconfig
 pkgconfig_DATA = libudev.pc
similarity index 100%
rename from udev/lib/libudev.c
rename to libudev/libudev.c
similarity index 96%
rename from udev/lib/libudev.h
rename to libudev/libudev.h
index 241091c37d0deac2174c82255e5908549dfcf4bc..ffeb80f8d30e9e1c9fdb1c55af66cf6d18d05c1f 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.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
-
 /*
  * udev - library context
  * 
similarity index 100%
rename from udev/lib/libudev.pc.in
rename to libudev/libudev.pc.in
index 94989e64bf57eac7ee7edb45a471641aa894c4ee..ca5b4fae593fc5c0cf16be478c2b225d133b356d 100644 (file)
@@ -1,8 +1,5 @@
 include $(top_srcdir)/Makefile.am.inc
 
-SUBDIRS = \
-       lib
-
 sbin_PROGRAMS = \
        udevd \
        udevadm
@@ -19,18 +16,18 @@ common_files = \
        udev-node.c \
        udev-rules.c \
        udev-util.c \
-       lib/libudev.h \
-       lib/libudev-private.h \
-       lib/libudev.c \
-       lib/libudev-list.c \
-       lib/libudev-util.c \
-       lib/libudev-device.c \
-       lib/libudev-device-db-write.c \
-       lib/libudev-monitor.c \
-       lib/libudev-enumerate.c \
-       lib/libudev-queue.c \
-       lib/libudev-queue-export.c \
-       lib/libudev-ctrl.c
+       ../libudev/libudev.h \
+       ../libudev/libudev-private.h \
+       ../libudev/libudev.c \
+       ../libudev/libudev-list.c \
+       ../libudev/libudev-util.c \
+       ../libudev/libudev-device.c \
+       ../libudev/libudev-device-db-write.c \
+       ../libudev/libudev-monitor.c \
+       ../libudev/libudev-enumerate.c \
+       ../libudev/libudev-queue.c \
+       ../libudev/libudev-queue-export.c \
+       ../libudev/libudev-ctrl.c
 
 if USE_SELINUX
 common_files += \
index 718797539030dae45f0505241c1c6fbe5ea2e3f7..8926dee9326ed02af990de107da1cde6e964ef95 100644 (file)
@@ -22,8 +22,8 @@
 #include <sys/types.h>
 #include <sys/param.h>
 
-#include "lib/libudev.h"
-#include "lib/libudev-private.h"
+#include "libudev.h"
+#include "libudev-private.h"
 
 #define DEFAULT_FAKE_PARTITIONS_COUNT          15
 #define UDEV_EVENT_TIMEOUT                     180