1# Config Policy 2 3## Introduction 4 5The config policy, namely, cust, provides APIs for each service module to obtain the configuration directories at different levels or the configuration file paths. 6 7## Directory Structure 8 9The directory structure for the config policy is as follows: 10 11``` 12/base/customization/ 13├── config_policy # Code repository for the config policy 14│ ├── frameworks # Core code of the config policy 15│ │ ├── config_policy # config policy 16│ │ │ └── src # Implementation code 17│ ├── interfaces # APIs of the config policy 18│ │ ├── inner_api # APIs of the config policy for internal subsystems 19│ │ └── kits # JavaScript APIs 20│ └── test # Test code 21``` 22 23## Usage 24 25Call the APIs of the config policy to obtain the configuration directories at different levels or the configuration file paths. 26 27``` 28#include "config_policy_utils.h" 29 30const char *testPathSuffix = "user.xml"; // Set the name of the configuration file. 31char buf[MAX_PATH_LEN] = {0}; 32char *filePath = GetOneCfgFile(testPathSuffix, buf, MAX_PATH_LEN); // Obtain the path of the configuration file with the highest priority. 33``` 34 35## Constraints 36 37**Programming language**: C/C++ 38 39## Repositories Involved 40 41**customization\_config\_policy** 42 43