ConfigPath: return a Path object

Migrate all callers to use Path directly, instead of doing the
conversion in each caller.
This commit is contained in:
Max Kellermann
2013-08-07 19:54:38 +02:00
parent abe090ec1f
commit b76a29a69a
19 changed files with 176 additions and 173 deletions

View File

@@ -116,6 +116,12 @@ static inline bool RemoveFile(const Path &file)
*/
Path ReadLink(const Path &path);
static inline bool
MakeFifo(const Path &path, mode_t mode)
{
return mkfifo(path.c_str(), mode) == 0;
}
/**
* Wrapper for access() that uses #Path names.
*/