summaryrefslogtreecommitdiff
path: root/src/shared/path-util.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-03-16 21:58:35 +0100
committerMichal Schmidt <mschmidt@redhat.com>2015-03-16 22:01:41 +0100
commit2230852bd9755e1b7bfd1260082471f559b0a005 (patch)
tree939362eed4ff66bb8b32f1791d0ae33840c8254a /src/shared/path-util.h
parent9a3d3aace311e85627115d89e4dfe1d71c01b7e3 (diff)
shared: add path_compare(), an ordering path comparison
... and make path_equal() a simple wrapper around it.
Diffstat (limited to 'src/shared/path-util.h')
-rw-r--r--src/shared/path-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/path-util.h b/src/shared/path-util.h
index bcf116ed3d..ca81b49cbf 100644
--- a/src/shared/path-util.h
+++ b/src/shared/path-util.h
@@ -44,6 +44,7 @@ char* path_make_absolute_cwd(const char *p);
int path_make_relative(const char *from_dir, const char *to_path, char **_r);
char* path_kill_slashes(char *path);
char* path_startswith(const char *path, const char *prefix) _pure_;
+int path_compare(const char *a, const char *b) _pure_;
bool path_equal(const char *a, const char *b) _pure_;
bool path_equal_or_files_same(const char *a, const char *b);
char* path_join(const char *root, const char *path, const char *rest);