1 /* 2 * Copyright (c) 2020 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @addtogroup utils_config 18 * @{ 19 * 20 * @brief Represents the configuration file of the utils subsystem. 21 * 22 * Vendors can set their desired items in the configuration file. 23 * 24 * @since 1.0 25 * @version 1.0 26 */ 27 28 /** 29 * @file utils_config.h 30 * 31 * @brief Represents the configuration file of the utils subsystem. 32 * 33 * Vendors can set their desired items in the configuration file. 34 * 35 * @since 1.0 36 * @version 1.0 37 */ 38 39 #ifndef UTILS_CONFIG_H 40 #define UTILS_CONFIG_H 41 42 /** 43 * @brief Specifies whether the KV store supports cache. 44 * 45 * If this variable is defined, the KV store supports cache. 46 * Vendors determine whether to enable this feature. It is enabled by default. 47 */ 48 #define FEATURE_KV_CACHE 49 50 /** 51 * @brief Indicates the number of data items that can be stored in the KV store cache. 52 * 53 * Default value: 10 54 */ 55 #define MAX_CACHE_SIZE 10 56 57 /** 58 * @brief Indicates the number of data items that can be stored for each application. 59 * 60 * Default value: 50 61 */ 62 #define MAX_KV_SUM 50 63 64 #endif // UTILS_CONFIG_H 65 /** @} */