ConfigPath: move path_domain to system/Path.cxx

This commit is contained in:
Max Kellermann 2013-09-12 10:03:37 +02:00
parent 08e6d222a2
commit bf4ee48efa
3 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,6 @@
#include "ConfigPath.hxx" #include "ConfigPath.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
#include "ConfigGlobal.hxx" #include "ConfigGlobal.hxx"
#include "ConfigOption.hxx" #include "ConfigOption.hxx"
@ -49,8 +48,6 @@
#include <windows.h> #include <windows.h>
#endif #endif
static constexpr Domain path_domain("path");
Path Path
ParsePath(const char *path, Error &error) ParsePath(const char *path, Error &error)
{ {

View File

@ -21,6 +21,7 @@
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "ConfigGlobal.hxx" #include "ConfigGlobal.hxx"
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
#include "util/Domain.hxx"
#include "gcc.h" #include "gcc.h"
#include <glib.h> #include <glib.h>
@ -46,6 +47,8 @@
*/ */
#define MPD_PATH_MAX_UTF8 ((MPD_PATH_MAX - 1) * 4 + 1) #define MPD_PATH_MAX_UTF8 ((MPD_PATH_MAX - 1) * 4 + 1)
const Domain path_domain("path");
std::string fs_charset; std::string fs_charset;
std::string Path::ToUTF8(const_pointer path_fs) std::string Path::ToUTF8(const_pointer path_fs)

View File

@ -44,6 +44,8 @@
# endif # endif
#endif #endif
extern const class Domain path_domain;
/** /**
* A path name in the native file system character set. * A path name in the native file system character set.
*/ */