fs/StandardDirectory: add GetUserCacheDir()

Move code from CreateConfiguredDatabase() and add XDG support.  This
implements an automatic Linux fallback for the setting "db_file" if
none was specified.
This commit is contained in:
Max Kellermann
2014-03-01 22:50:11 +01:00
parent efa6678bcc
commit 36ca57a54e
4 changed files with 26 additions and 15 deletions
+7
View File
@@ -33,6 +33,13 @@ AllocatedPath GetUserConfigDir();
*/
AllocatedPath GetUserMusicDir();
/**
* Obtains cache directory for the current user.
*/
gcc_pure
AllocatedPath
GetUserCacheDir();
#ifdef WIN32
/**