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

@@ -20,12 +20,14 @@
#ifndef MPD_DAEMON_HXX
#define MPD_DAEMON_HXX
class Path;
#ifndef WIN32
void
daemonize_init(const char *user, const char *group, const char *pidfile);
daemonize_init(const char *user, const char *group, Path &&pidfile);
#else
static inline void
daemonize_init(const char *user, const char *group, const char *pidfile)
daemonize_init(const char *user, const char *group, Path &&pidfile)
{ (void)user; (void)group; (void)pidfile; }
#endif