X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=libudev%2Flibudev.c;h=05b62efd8686f09e6bfbb7eb9b7d47fd0e8b2b7b;hp=d197ba7b1930ab9cac59e928ab82a56bc6537a28;hb=7d701b0e26f96c279ef9ba8e4ef82fc4fca56acf;hpb=1e5113228f8c5cde04b03616485e0c4ce54c3320 diff --git a/libudev/libudev.c b/libudev/libudev.c index d197ba7b1..05b62efd8 100644 --- a/libudev/libudev.c +++ b/libudev/libudev.c @@ -1,7 +1,7 @@ /* * libudev - interface to udev device information * - * Copyright (C) 2008 Kay Sievers + * Copyright (C) 2008-2009 Kay Sievers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -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 ||