chiark / gitweb /
path-util: unify code for detecting OS trees
[elogind.git] / src / shared / path-util.h
index e81821a28fcbed829f5534452fd6191c0c163f5e..ea0f1730826dbc6082ef522b87d695cc53d76dcb 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foopathutilhfoo
-#define foopathutilhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -37,9 +36,8 @@ bool path_equal(const char *a, const char *b);
 
 char **path_strv_make_absolute_cwd(char **l);
 char **path_strv_canonicalize(char **l);
-char **path_strv_remove_empty(char **l);
+char **path_strv_canonicalize_uniq(char **l);
 
 int path_is_mount_point(const char *path, bool allow_symlink);
 int path_is_read_only_fs(const char *path);
-
-#endif
+int path_is_os_tree(const char *path);