fs/StandardDirectory: add more pure/const attributes
This commit is contained in:
parent
552c30eae4
commit
1bb22f118d
@ -25,19 +25,21 @@
|
|||||||
/**
|
/**
|
||||||
* Obtains configuration directory for the current user.
|
* Obtains configuration directory for the current user.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetUserConfigDir() noexcept;
|
GetUserConfigDir() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains music directory for the current user.
|
* Obtains music directory for the current user.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetUserMusicDir() noexcept;
|
GetUserMusicDir() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains cache directory for the current user.
|
* Obtains cache directory for the current user.
|
||||||
*/
|
*/
|
||||||
[[gnu::pure]]
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetUserCacheDir() noexcept;
|
GetUserCacheDir() noexcept;
|
||||||
|
|
||||||
@ -46,6 +48,7 @@ GetUserCacheDir() noexcept;
|
|||||||
/**
|
/**
|
||||||
* Obtains system configuration directory.
|
* Obtains system configuration directory.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetSystemConfigDir() noexcept;
|
GetSystemConfigDir() noexcept;
|
||||||
|
|
||||||
@ -54,6 +57,7 @@ GetSystemConfigDir() noexcept;
|
|||||||
* Application base directory is a directory that contains 'bin' folder
|
* Application base directory is a directory that contains 'bin' folder
|
||||||
* for current executable.
|
* for current executable.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetAppBaseDir() noexcept;
|
GetAppBaseDir() noexcept;
|
||||||
|
|
||||||
@ -62,12 +66,14 @@ GetAppBaseDir() noexcept;
|
|||||||
/**
|
/**
|
||||||
* Obtains home directory for the current user.
|
* Obtains home directory for the current user.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::const]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetHomeDir() noexcept;
|
GetHomeDir() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains home directory for the specified user.
|
* Obtains home directory for the specified user.
|
||||||
*/
|
*/
|
||||||
|
[[gnu::pure]]
|
||||||
AllocatedPath
|
AllocatedPath
|
||||||
GetHomeDir(const char *user_name) noexcept;
|
GetHomeDir(const char *user_name) noexcept;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user