X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=libudev%2Flibudev.c;h=695443cf3bd29ecddc6cf73456e4e0dd626b57f8;hp=d197ba7b1930ab9cac59e928ab82a56bc6537a28;hb=504a553e78eaf3f10a41f72c85a626d3942b13db;hpb=1e5113228f8c5cde04b03616485e0c4ce54c3320 diff --git a/libudev/libudev.c b/libudev/libudev.c index d197ba7b1..695443cf3 100644 --- a/libudev/libudev.c +++ b/libudev/libudev.c @@ -21,10 +21,18 @@ #include "libudev.h" #include "libudev-private.h" +/** + * SECTION:libudev + * @short_description: libudev context + * + * The context contains the default values read from the udev config file, + * and is passed to all library operations. + */ + /** * udev: * - * Library context, passed to all operations. + * Opaque object representing the library context. */ struct udev { int refcount; @@ -115,7 +123,7 @@ struct udev *udev_new(void) udev->log_priority = LOG_ERR; udev_list_init(&udev->properties_list); udev->run = 1; - udev->dev_path = strdup(UDEV_PREFIX "/dev"); + udev->dev_path = strdup("/dev"); udev->sys_path = strdup("/sys"); config_file = strdup(SYSCONFDIR "/udev/udev.conf"); if (udev->dev_path == NULL ||