Skip to main content

ohos_deviceinfo_sys/
deviceinfo_ffi.rs

1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6
7extern "C" {
8    /// Obtains the device type represented by a string,
9    /// which can be `phone` (or `default` for phones), `wearable`, `liteWearable`,
10    /// `tablet`, `tv`, `car`, or `smartVision`.
11    ///
12    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
13    ///
14    /// Available since API-level: 10
15    pub fn OH_GetDeviceType() -> *const ::core::ffi::c_char;
16    /// Obtains the device manufacturer represented by a string.
17    ///
18    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
19    ///
20    /// Available since API-level: 10
21    pub fn OH_GetManufacture() -> *const ::core::ffi::c_char;
22    /// Obtains the device brand represented by a string.
23    ///
24    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
25    ///
26    /// Available since API-level: 10
27    pub fn OH_GetBrand() -> *const ::core::ffi::c_char;
28    /// Obtains the product name speaded in the market
29    ///
30    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
31    ///
32    /// Available since API-level: 10
33    pub fn OH_GetMarketName() -> *const ::core::ffi::c_char;
34    /// Obtains the product series represented by a string.
35    ///
36    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
37    ///
38    /// Available since API-level: 10
39    pub fn OH_GetProductSeries() -> *const ::core::ffi::c_char;
40    /// Obtains the product model represented by a string.
41    ///
42    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
43    ///
44    /// Available since API-level: 10
45    pub fn OH_GetProductModel() -> *const ::core::ffi::c_char;
46    /// Obtains the software model represented by a string.
47    ///
48    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
49    ///
50    /// Available since API-level: 10
51    pub fn OH_GetSoftwareModel() -> *const ::core::ffi::c_char;
52    /// Obtains the hardware model represented by a string.
53    ///
54    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
55    ///
56    /// Available since API-level: 10
57    pub fn OH_GetHardwareModel() -> *const ::core::ffi::c_char;
58    /// Obtains the bootloader version number represented by a string.
59    ///
60    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
61    ///
62    /// Available since API-level: 10
63    pub fn OH_GetBootloaderVersion() -> *const ::core::ffi::c_char;
64    /// Obtains the application binary interface (Abi) list represented by a string.
65    ///
66    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
67    ///
68    /// Available since API-level: 10
69    pub fn OH_GetAbiList() -> *const ::core::ffi::c_char;
70    /// Obtains the security patch tag represented by a string.
71    ///
72    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
73    ///
74    /// Available since API-level: 10
75    pub fn OH_GetSecurityPatchTag() -> *const ::core::ffi::c_char;
76    /// Obtains the product version displayed for customer represented by a string.
77    ///
78    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
79    ///
80    /// Available since API-level: 10
81    pub fn OH_GetDisplayVersion() -> *const ::core::ffi::c_char;
82    /// Obtains the incremental version represented by a string.
83    ///
84    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
85    ///
86    /// Available since API-level: 10
87    pub fn OH_GetIncrementalVersion() -> *const ::core::ffi::c_char;
88    /// Obtains the OS release type represented by a string.
89    ///
90    /// <p>The OS release category can be `Release`, `Beta`, or `Canary`.
91    /// The specific release type may be `Release`, `Beta1`, or others alike.
92    ///
93    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
94    ///
95    /// Available since API-level: 10
96    pub fn OH_GetOsReleaseType() -> *const ::core::ffi::c_char;
97    /// Obtains the OS full version name represented by a string.
98    ///
99    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
100    ///
101    /// Available since API-level: 10
102    pub fn OH_GetOSFullName() -> *const ::core::ffi::c_char;
103    /// Obtains the SDK API version number.
104    ///
105    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
106    ///
107    /// Available since API-level: 10
108    pub fn OH_GetSdkApiVersion() -> ::core::ffi::c_int;
109    /// Obtains the first API version number.
110    ///
111    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
112    ///
113    /// Available since API-level: 10
114    pub fn OH_GetFirstApiVersion() -> ::core::ffi::c_int;
115    /// Obtains the version ID by a string.
116    ///
117    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
118    ///
119    /// Available since API-level: 10
120    pub fn OH_GetVersionId() -> *const ::core::ffi::c_char;
121    /// Obtains the build type of the current running OS.
122    ///
123    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
124    ///
125    /// Available since API-level: 10
126    pub fn OH_GetBuildType() -> *const ::core::ffi::c_char;
127    /// Obtains the build user of the current running OS.
128    ///
129    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
130    ///
131    /// Available since API-level: 10
132    pub fn OH_GetBuildUser() -> *const ::core::ffi::c_char;
133    /// Obtains the build host of the current running OS.
134    ///
135    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
136    ///
137    /// Available since API-level: 10
138    pub fn OH_GetBuildHost() -> *const ::core::ffi::c_char;
139    /// Obtains the build time of the current running OS.
140    ///
141    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
142    ///
143    /// Available since API-level: 10
144    pub fn OH_GetBuildTime() -> *const ::core::ffi::c_char;
145    /// Obtains the version hash of the current running OS.
146    ///
147    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
148    ///
149    /// Available since API-level: 10
150    pub fn OH_GetBuildRootHash() -> *const ::core::ffi::c_char;
151    /// Obtains the Distribution OS name represented by a string.
152    ///
153    /// <p>Independent Software Vendor (ISV) may distribute OHOS with their own OS name.
154    /// If ISV not specified, it will return an empty string
155    ///
156    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
157    ///
158    /// Available since API-level: 10
159    pub fn OH_GetDistributionOSName() -> *const ::core::ffi::c_char;
160    /// Obtains the ISV distribution OS version represented by a string.
161    /// If ISV not specified, it will return the same value as OH_GetOSFullName
162    ///
163    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
164    ///
165    /// Available since API-level: 10
166    pub fn OH_GetDistributionOSVersion() -> *const ::core::ffi::c_char;
167    /// Obtains the ISV distribution OS api version represented by a integer.
168    /// If ISV not specified, it will return the same value as OH_GetSdkApiVersion
169    ///
170    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
171    ///
172    /// Available since API-level: 10
173    pub fn OH_GetDistributionOSApiVersion() -> ::core::ffi::c_int;
174    /// Obtains the ISV distribution OS release type represented by a string.
175    /// If ISV not specified, it will return the same value as OH_GetOsReleaseType
176    ///
177    /// Required System Capabilities: SystemCapability.Startup.SystemInfo
178    ///
179    /// Available since API-level: 10
180    pub fn OH_GetDistributionOSReleaseType() -> *const ::core::ffi::c_char;
181}