summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-03-25 17:58:30 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-03-25 17:58:30 +0100
commit672ff71911f2a42e6af030c3ef8830f51439b0d0 (patch)
treee45faecda330d8f8bb476d1253e41e61e719f7ac /libudev
parent6e0768d2906887d6cf78a7f073c0c5343e49442b (diff)
libudev: docs - add udev_get_run_path()
Diffstat (limited to 'libudev')
-rw-r--r--libudev/docs/libudev-sections.txt1
-rw-r--r--libudev/libudev.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/libudev/docs/libudev-sections.txt b/libudev/docs/libudev-sections.txt
index 918344d941..2560a08e1f 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
</SECTION>
diff --git a/libudev/libudev.c b/libudev/libudev.c
index d96934fba8..edc24e2fca 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)