From 8e18485284a8718d4a9111b7c1ed91cb2f9634b0 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 26 Oct 2013 00:36:49 +0200 Subject: udev: move udev_rules_check_timestamp to shared I want to use this from a bulitin in a subsequent patch. --- src/shared/path-util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/path-util.h') diff --git a/src/shared/path-util.h b/src/shared/path-util.h index 0a42de7e2..42b4189d7 100644 --- a/src/shared/path-util.h +++ b/src/shared/path-util.h @@ -24,6 +24,7 @@ #include #include "macro.h" +#include "time-util.h" #ifdef HAVE_SPLIT_USR # define DEFAULT_PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" @@ -52,6 +53,8 @@ int path_is_os_tree(const char *path); int find_binary(const char *name, char **filename); +bool paths_check_timestamp(char **paths, usec_t *paths_ts_usec, bool update); + /* Iterates through the path prefixes of the specified path, going up * the tree, to root. Also returns "" (and not "/"!) for the root * directory. Excludes the specified directory itself */ -- cgit v1.2.3