X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdir.h;h=ebbe56c553a5e8cd207f18240e3a0bf474e4e684;hp=3b68463ec36f37f5944ff63a65d54191b18d915f;hb=9c48f72f02e3112f4193cc8b3f12b135aa483de1;hpb=a17d6ad286e19e2222ab8b6c9a762a83bf2c6c56 diff --git a/source/dir.h b/source/dir.h index 3b68463..ebbe56c 100644 --- a/source/dir.h +++ b/source/dir.h @@ -10,12 +10,11 @@ Distributed under the LGPL #include #include +#include "path.h" namespace Msp { namespace FS { -class Path; - /// Creates a directory void mkdir(const Path &path, int mode); @@ -43,6 +42,12 @@ Path get_home_dir(); /// Returns a directory suitable for storing user-specific data Path get_user_data_dir(const std::string &appname); +/// Returns a directory containing system-wide configuration +Path get_sys_conf_dir(const std::string &argv0); + +/// Returns a directory containing immutable system-wide data +Path get_sys_data_dir(const std::string &argv0, const std::string &appname); + /// Changes the current working directory void chdir(const Path &);