1 /* 2 * Copyright (c) 2021 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 #ifndef STARTUP_SYSPARAM_PARAMETER_HAL_API_H 17 #define STARTUP_SYSPARAM_PARAMETER_HAL_API_H 18 19 #ifdef __cplusplus 20 #if __cplusplus 21 extern "C" { 22 #endif 23 #endif /* __cplusplus */ 24 25 const char *HalGetDeviceType(); 26 const char *HalGetProductModel(); 27 const char *HalGetManufacture(); 28 const char *HalGetBrand(); 29 const char *HalGetMarketName(); 30 const char *HalGetProductSeries(); 31 const char *HalGetSoftwareModel(); 32 const char *HalGetHardwareModel(); 33 const char *HalGetHardwareProfile(); 34 const char *HalGetSerial(); 35 const char *HalGetAbiList(); 36 const char *HalGetBootloaderVersion(); 37 const char *HalGetSecurityPatchTag(); 38 const char *HalGetDisplayVersion(); 39 const char *HalGetIncrementalVersion(); 40 const char *HalGetOsReleaseType(); 41 const char *HalGetSdkApiVersion(); 42 const char *HalGetBuildRootHash(); 43 const char *HalGetSdkApiLevel(); 44 const char *HalGetOSName(); 45 const char *HalGetBuildType(); 46 const char *HalGetBuildUser(); 47 const char *HalGetBuildHost(); 48 const char *HalGetBuildTime(); 49 50 int HalGetDevUdid(char *udid, int size); 51 int HalGetFirstApiVersion(); 52 int HalGetParameter(const char *key, const char *def, char *value, unsigned int len); 53 int HalSetParameter(const char *key, const char *value); 54 int HalGetIntParameter(const char *key, int def); 55 56 int HalWaitParameter(const char *key, const char *value, int timeout); 57 unsigned int HalFindParameter(const char *name); 58 unsigned int HalGetParameterCommitId(unsigned int handle); 59 int HalGetParameterName(unsigned int handle, char *name, unsigned int len); 60 int HalGetParameterValue(unsigned int handle, char *value, unsigned int len); 61 #ifdef __cplusplus 62 #if __cplusplus 63 } 64 #endif 65 #endif /* __cplusplus */ 66 67 #endif // STARTUP_SYSPARAM_PARAMETER_HAL_API_H 68