diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-03-19 16:54:15 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-03-19 16:54:15 -0400 |
commit | 252b174d232386f1b77bf39a802ff97d0388b2a2 (patch) | |
tree | 84b0d2fe44803e3e4ca016c42a0dff1d6466d3ef /src/shared/path-util.h | |
parent | c42184ebda2bddc1f0af961fc0e54640b17b9b0f (diff) |
shared: add path_compare(), an ordering path comparison
... and make path_equal() a simple wrapper around it.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/path-util.h')
-rw-r--r-- | src/shared/path-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/path-util.h b/src/shared/path-util.h index e0cab15a3e..f5f5c36664 100644 --- a/src/shared/path-util.h +++ b/src/shared/path-util.h @@ -28,6 +28,7 @@ char* path_make_absolute(const char *p, const char *prefix); char* path_make_absolute_cwd(const char *p); 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_; char** path_strv_resolve(char **l, const char *prefix); |