huangke11 d394b495e0 add cust js api
Signed-off-by: huangke11 <huangke11@huawei.com>
2022-02-09 20:32:18 +08:00
2021-04-07 14:46:49 +08:00
2022-02-09 19:51:51 +08:00
2022-02-09 20:32:18 +08:00
2022-02-09 19:51:51 +08:00
2022-02-09 20:29:34 +08:00
2021-03-11 18:38:53 +08:00
2021-03-16 11:36:55 +08:00
2021-03-16 11:36:55 +08:00

cust

Introduction

The customization framework, 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 customization framework is as follows:

/base/global/
├── cust_lite                 # Code repository for the customization framework
│   ├── frameworks            # Core code of the customization framework
│   │   ├── cust_lite         # Customization framework
│   │   │   ├── src           # Implementation code
│   │   │   └── test          # Test code
│   ├── interfaces            # APIs of the customization framework
│   │   └── innerkits         # APIs of the customization framework for internal subsystems

Usage

Call the APIs of the customization framework to obtain the configuration directories at different levels or the configuration file paths.

#include <gtest/gtest.h>
#include "cust_utils.h"

const char *testPathSuffix = "user.xml"; // Set the name of the configuration file.
char buf[MAX_PATH_LEN];
char *filePath = GetOneCfgFile(testPathSuffix, CUST_TYPE_CONFIG, buf, MAX_PATH_LEN); // Obtain the path of the configuration file with the highest priority.

Constraints

Programming language: C/C++

Repositories Involved

Globalization subsystem

global_resmgr_lite

global_i18n_lite

global_cust_lite

S
Description
No description provided
Readme 169 KiB
Languages
C++ 71.8%
C 28.2%