1 /*
2  * Copyright (c) 2024 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 OHOS_DEVICE_INFO_FFI_H
17 #define OHOS_DEVICE_INFO_FFI_H
18 
19 #include "cj_common_ffi.h"
20 #include <cstdint>
21 
22 extern "C" {
23     FFI_EXPORT const char* FfiOHOSDeviceInfoGetHardwareProfile();
24     FFI_EXPORT const char* FfiOHOSDeviceInfoDeviceType();
25     FFI_EXPORT const char* FfiOHOSDeviceInfoOsFullName();
26     FFI_EXPORT const char* FfiOHOSDeviceInfoProductModel();
27     FFI_EXPORT const char* FfiOHOSDeviceInfoBrand();
28     FFI_EXPORT const char* FfiOHOSDeviceInfoUdid();
29     FFI_EXPORT const char* FfiOHOSDeviceInfoBuildRootHash();
30     FFI_EXPORT const char* FfiOHOSDeviceInfoBuildTime();
31     FFI_EXPORT const char* FfiOHOSDeviceInfoBuildHost();
32     FFI_EXPORT const char* FfiOHOSDeviceInfoBuildUser();
33     FFI_EXPORT const char* FfiOHOSDeviceInfoBuildType();
34     FFI_EXPORT const char* FfiOHOSDeviceInfoVersionId();
35     FFI_EXPORT int64_t FfiOHOSDeviceInfoFirstApiVersion();
36     FFI_EXPORT int64_t FfiOHOSDeviceInfoSdkApiVersion();
37     FFI_EXPORT int64_t FfiOHOSDeviceInfoBuildVersion();
38     FFI_EXPORT int64_t FfiOHOSDeviceInfoFeatureVersion();
39     FFI_EXPORT int64_t FfiOHOSDeviceInfoSeniorVersion();
40     FFI_EXPORT int64_t FfiOHOSDeviceInfoMajorVersion();
41     FFI_EXPORT const char* FfiOHOSDeviceInfoDisplayVersion();
42     FFI_EXPORT const char* FfiOHOSDeviceInfoSerial();
43     FFI_EXPORT const char* FfiOHOSDeviceInfoOsReleaseType();
44     FFI_EXPORT const char* FfiOHOSDeviceInfoIncrementalVersion();
45     FFI_EXPORT const char* FfiOHOSDeviceInfoSecurityPatchTag();
46     FFI_EXPORT const char* FfiOHOSDeviceInfoAbiList();
47     FFI_EXPORT const char* FfiOHOSDeviceInfoBootloaderVersion();
48     FFI_EXPORT const char* FfiOHOSDeviceInfoHardwareModel();
49     FFI_EXPORT const char* FfiOHOSDeviceInfoSoftwareModel();
50     FFI_EXPORT const char* FfiOHOSDeviceInfoProductSeries();
51     FFI_EXPORT const char* FfiOHOSDeviceInfoMarketName();
52     FFI_EXPORT const char* FfiOHOSDeviceInfoManufacture();
53     FFI_EXPORT const char* FfiOHOSDeviceInfoDistributionOSName();
54     FFI_EXPORT const char* FfiOHOSDeviceInfoDistributionOSVersion();
55     FFI_EXPORT int64_t FfiOHOSDeviceInfoDistributionOSApiVersion();
56     FFI_EXPORT const char* FfiOHOSDeviceInfoDistributionOSReleaseType();
57 }
58 
59 #endif // OHOS_DEVICE_INFO_FFI_H