38fa81bf8f
* This does intentionally break source compatibility, so that a review of concerned code is forced. * Binary compatibility should be maintained in most cases. The values of the constants for the writable directories are now used for the writable system directories. The values for the non-writable directories are mapped to "/boot/system/data/empty/...", an empty or non-existent directory, so that they will simply be skipped in search paths. Only code that explicitly expects to find something in a B_COMMON_* directory, will fail.
63 lines
2.7 KiB
C
63 lines
2.7 KiB
C
/*
|
|
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _SYSTEM_DIRECTORIES_H
|
|
#define _SYSTEM_DIRECTORIES_H
|
|
|
|
|
|
#define kGlobalBinDirectory "/bin"
|
|
#define kGlobalEtcDirectory "/etc"
|
|
#define kGlobalPackageLinksDirectory "/packages"
|
|
#define kGlobalSystemDirectory "/system"
|
|
#define kGlobalTempDirectory "/tmp"
|
|
#define kGlobalVarDirectory "/var"
|
|
|
|
#define kAppsDirectory "/boot/system/apps"
|
|
#define kPreferencesDirectory "/boot/system/preferences"
|
|
|
|
#define kAppLocalAddonsDirectory "%A/add-ons"
|
|
#define kAppLocalLibDirectory "%A/lib"
|
|
|
|
#define kVolumeLocalSystemKernelAddonsDirectory "system/add-ons/kernel"
|
|
#define kVolumeLocalCommonNonpackagedKernelAddonsDirectory \
|
|
"system/non-packaged/add-ons/kernel"
|
|
#define kVolumeLocalCommonKernelAddonsDirectory "system/add-ons/kernel"
|
|
#define kVolumeLocalUserNonpackagedKernelAddonsDirectory \
|
|
"home/config/non-packaged/add-ons/kernel"
|
|
#define kVolumeLocalUserKernelAddonsDirectory "home/config/add-ons/kernel"
|
|
|
|
#define kSystemDirectory "/boot/system"
|
|
#define kSystemAddonsDirectory "/boot/system/add-ons"
|
|
#define kSystemAppsDirectory "/boot/system/apps"
|
|
#define kSystemBinDirectory "/boot/system/bin"
|
|
#define kSystemDataDirectory "/boot/system/data"
|
|
#define kSystemDevelopDirectory "/boot/system/develop"
|
|
#define kSystemLibDirectory "/boot/system/lib"
|
|
#define kSystemPackagesDirectory "/boot/system/packages"
|
|
#define kSystemPackageLinksDirectory "/boot/system/package-links"
|
|
#define kSystemPreferencesDirectory "/boot/system/preferences"
|
|
#define kSystemServersDirectory "/boot/system/servers"
|
|
|
|
#define kSystemEtcDirectory "/boot/system/settings/etc"
|
|
#define kSystemTempDirectory "/boot/system/cache/tmp"
|
|
#define kSystemVarDirectory "/boot/system/var"
|
|
#define kSystemLogDirectory "/boot/system/var/log"
|
|
#define kSystemNonpackagedAddonsDirectory "/boot/system/non-packaged/add-ons"
|
|
#define kSystemNonpackagedBinDirectory "/boot/system/non-packaged/bin"
|
|
#define kSystemNonpackagedLibDirectory "/boot/system/non-packaged/lib"
|
|
|
|
#define kUserDirectory "/boot/home"
|
|
#define kUserConfigDirectory "/boot/home/config"
|
|
#define kUserAddonsDirectory "/boot/home/config/add-ons"
|
|
#define kUserBinDirectory "/boot/home/config/bin"
|
|
#define kUserLibDirectory "/boot/home/config/lib"
|
|
#define kUserPackagesDirectory "/boot/home/config/packages"
|
|
#define kUserSettingsDirectory "/boot/home/config/settings"
|
|
#define kUserNonpackagedAddonsDirectory "/boot/home/config/non-packaged/add-ons"
|
|
#define kUserNonpackagedBinDirectory "/boot/home/config/non-packaged/bin"
|
|
#define kUserNonpackagedLibDirectory "/boot/home/config/non-packaged/lib"
|
|
|
|
|
|
#endif // _SYSTEM_DIRECTORIES_H
|