]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.h
Style update: spaces around assignments
[libs/core.git] / source / utils.h
index c582c2217ba7b489bbd43fb0801904ffb134c013..6a4c55add16f7ec305d40341d7f65fe48d65710b 100644 (file)
@@ -52,6 +52,10 @@ void rename(const Path &from, const Path &to);
 /// Makes a path relative to some base path.  That is, base/result==path.
 Path relative(const Path &path, const Path &base);
 
+/** Determines how many levels a path is below another.  Returns -1 if path is
+not a descendant of parent. */
+int descendant_depth(const Path &path, const Path &parent);
+
 } // namespace FS
 } // namespace Msp