* added B_COMMON_CACHE_DIRECTORY to find_directory()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2011-01-24 20:42:48 +00:00
parent ccd062a898
commit 77a8a5cce3
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ typedef enum {
B_COMMON_MEDIA_NODES_DIRECTORY,
B_COMMON_SOUNDS_DIRECTORY,
B_COMMON_DATA_DIRECTORY,
B_COMMON_CACHE_DIRECTORY,
/* User directories. These are interpreted in the context
of the user making the find_directory call. */

View File

@ -80,6 +80,7 @@ static const char *kCommonDirectories[] = {
COMMON "/add-ons/media",
COMMON "/data/sounds",
COMMON "/data",
COMMON "/cache", // B_COMMON_CACHE_DIRECTORY
};
/* User directories */
@ -247,6 +248,7 @@ find_directory(directory_which which, dev_t device, bool createIt,
case B_COMMON_MEDIA_NODES_DIRECTORY:
case B_COMMON_SOUNDS_DIRECTORY:
case B_COMMON_DATA_DIRECTORY:
case B_COMMON_CACHE_DIRECTORY:
templatePath = kCommonDirectories[which - B_COMMON_DIRECTORY];
break;