# customization_config_policy **Repository Path**: fixhisysevent/customization_config_policy ## Basic Information - **Project Name**: customization_config_policy - **Description**: Config policy | 配置策略 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 61 - **Created**: 2022-12-06 - **Last Updated**: 2022-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Config Policy ## Introduction The config policy, namely, cust, provides APIs for each service module to obtain the configuration directories at different levels or the configuration file paths. ## Directory Structure The directory structure for the config policy is as follows: ``` /base/customization/ ├── config_policy # Code repository for the config policy │ ├── frameworks # Core code of the config policy │ │ ├── config_policy # config policy │ │ │ └── src # Implementation code │ ├── interfaces # APIs of the config policy │ │ ├── inner_api # APIs of the config policy for internal subsystems │ │ └── kits # JavaScript APIs │ └── test # Test code ``` ## Usage Call the APIs of the config policy to obtain the configuration directories at different levels or the configuration file paths. ``` #include "config_policy_utils.h" const char *testPathSuffix = "user.xml"; // Set the name of the configuration file. char buf[MAX_PATH_LEN] = {0}; char *filePath = GetOneCfgFile(testPathSuffix, buf, MAX_PATH_LEN); // Obtain the path of the configuration file with the highest priority. ``` ## Constraints **Programming language**: C/C++ ## Repositories Involved **customization\_config\_policy**