From: Kay Sievers Date: Fri, 25 Mar 2011 16:58:30 +0000 (+0100) Subject: libudev: docs - add udev_get_run_path() X-Git-Tag: 174~213 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=672ff71911f2a42e6af030c3ef8830f51439b0d0;p=systemd libudev: docs - add udev_get_run_path() --- diff --git a/libudev/docs/libudev-sections.txt b/libudev/docs/libudev-sections.txt index 918344d9..2560a08e 100644 --- a/libudev/docs/libudev-sections.txt +++ b/libudev/docs/libudev-sections.txt @@ -10,6 +10,7 @@ udev_get_log_priority udev_set_log_priority udev_get_sys_path udev_get_dev_path +udev_get_run_path udev_get_userdata udev_set_userdata diff --git a/libudev/libudev.c b/libudev/libudev.c index d96934fb..edc24e2f 100644 --- a/libudev/libudev.c +++ b/libudev/libudev.c @@ -411,6 +411,14 @@ const char *udev_get_run_config_path(struct udev *udev) return udev->run_config_path; } +/** + * udev_get_run_path: + * @udev: udev library context + * + * Retrieve the udev runtime directory path. The default is "/run/udev". + * + * Returns: the runtime directory path + **/ const char *udev_get_run_path(struct udev *udev) { if (udev->run_path != NULL)