2013-12-06 12:07:32 +01:00
|
|
|
/*
|
2021-01-01 19:54:25 +01:00
|
|
|
* Copyright 2003-2021 The Music Player Daemon Project
|
2013-12-06 12:07:32 +01:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2018-10-31 13:39:20 +01:00
|
|
|
|
2013-12-06 12:07:32 +01:00
|
|
|
#ifndef MPD_FS_STANDARD_DIRECTORY_HXX
|
|
|
|
#define MPD_FS_STANDARD_DIRECTORY_HXX
|
|
|
|
|
|
|
|
#include "AllocatedPath.hxx"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains configuration directory for the current user.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetUserConfigDir() noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains music directory for the current user.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetUserMusicDir() noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
2014-03-01 22:50:11 +01:00
|
|
|
/**
|
|
|
|
* Obtains cache directory for the current user.
|
|
|
|
*/
|
|
|
|
gcc_pure
|
|
|
|
AllocatedPath
|
2017-05-08 14:44:49 +02:00
|
|
|
GetUserCacheDir() noexcept;
|
2014-03-01 22:50:11 +01:00
|
|
|
|
2017-12-12 10:22:20 +01:00
|
|
|
#ifdef _WIN32
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains system configuration directory.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetSystemConfigDir() noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains application application base directory.
|
|
|
|
* Application base directory is a directory that contains 'bin' folder
|
|
|
|
* for current executable.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetAppBaseDir() noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains home directory for the current user.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetHomeDir() noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Obtains home directory for the specified user.
|
|
|
|
*/
|
2017-05-08 14:44:49 +02:00
|
|
|
AllocatedPath
|
|
|
|
GetHomeDir(const char *user_name) noexcept;
|
2013-12-06 12:07:32 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|