udmf_sys/uds/uds_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#[cfg(feature = "api-13")]
7use ohos_sys_opaque_types::OH_PixelmapNative;
8#[cfg(feature = "api-14")]
9pub use ohos_sys_opaque_types::OH_UdsContentForm;
10pub use ohos_sys_opaque_types::{OH_UdsAppItem, OH_UdsHtml, OH_UdsHyperlink, OH_UdsPlainText};
11#[cfg(feature = "api-13")]
12pub use ohos_sys_opaque_types::{OH_UdsArrayBuffer, OH_UdsFileUri, OH_UdsPixelMap};
13
14/// Describes the key-value object of UDS data.
15///
16///
17/// Available since API-level: 22
18#[cfg(feature = "api-22")]
19#[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
20#[repr(C)]
21pub struct OH_UdsDetails {
22 _unused: [u8; 0],
23}
24extern "C" {
25 /// Creation a pointer to the instance of the [`OH_UdsPlainText`].
26 ///
27 ///
28 /// # Returns
29 ///
30 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsPlainText`]
31 /// structure is returned. If the operation is failed, nullptr is returned.
32 /// [`OH_UdsPlainText`]
33 /// Available since API-level: 12
34 #[cfg(feature = "api-12")]
35 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
36 pub fn OH_UdsPlainText_Create() -> *mut OH_UdsPlainText;
37 /// Destroy a pointer that points to the [`OH_UdsPlainText`] instance.
38 ///
39 /// # Arguments
40 ///
41 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
42 /// [`OH_UdsPlainText`]
43 /// Available since API-level: 12
44 #[cfg(feature = "api-12")]
45 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
46 pub fn OH_UdsPlainText_Destroy(pThis: *mut OH_UdsPlainText);
47 /// Get type id from the [`OH_UdsPlainText`].
48 ///
49 /// # Arguments
50 ///
51 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
52 ///
53 /// # Returns
54 ///
55 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
56 /// [`OH_UdsPlainText`]
57 /// Available since API-level: 12
58 #[cfg(feature = "api-12")]
59 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
60 pub fn OH_UdsPlainText_GetType(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
61 /// Get content from the [`OH_UdsPlainText`].
62 ///
63 /// # Arguments
64 ///
65 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
66 ///
67 /// # Returns
68 ///
69 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
70 /// [`OH_UdsPlainText`]
71 /// Available since API-level: 12
72 #[cfg(feature = "api-12")]
73 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
74 pub fn OH_UdsPlainText_GetContent(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
75 /// Get abstract from the [`OH_UdsPlainText`].
76 ///
77 /// # Arguments
78 ///
79 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
80 ///
81 /// # Returns
82 ///
83 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
84 /// [`OH_UdsPlainText`]
85 /// Available since API-level: 12
86 #[cfg(feature = "api-12")]
87 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
88 pub fn OH_UdsPlainText_GetAbstract(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
89 /// Get details from the [`OH_UdsPlainText`].
90 ///
91 /// # Arguments
92 ///
93 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
94 ///
95 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
96 ///
97 /// # Returns
98 ///
99 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
100 /// [`UDMF_E_OK`] success.
101 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
102 /// [`OH_UdsPlainText`] OH_UdsDetails Udmf_ErrCode
103 ///
104 /// Available since API-level: 22
105 #[cfg(feature = "api-22")]
106 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
107 pub fn OH_UdsPlainText_GetDetails(
108 pThis: *mut OH_UdsPlainText,
109 details: *mut OH_UdsDetails,
110 ) -> ::core::ffi::c_int;
111 /// Set content to the [`OH_UdsPlainText`].
112 ///
113 /// # Arguments
114 ///
115 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
116 ///
117 /// * `content` - Represents a new content string.
118 ///
119 /// # Returns
120 ///
121 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
122 /// [`UDMF_E_OK`] success.
123 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
124 /// [`OH_UdsPlainText`] Udmf_ErrCode
125 ///
126 /// Available since API-level: 12
127 #[cfg(feature = "api-12")]
128 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
129 pub fn OH_UdsPlainText_SetContent(
130 pThis: *mut OH_UdsPlainText,
131 content: *const ::core::ffi::c_char,
132 ) -> ::core::ffi::c_int;
133 /// Set abstract to the [`OH_UdsPlainText`].
134 ///
135 /// # Arguments
136 ///
137 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
138 ///
139 /// * `abstract` - Represents a new string value.
140 ///
141 /// # Returns
142 ///
143 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
144 /// [`UDMF_E_OK`] success.
145 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
146 /// [`OH_UdsPlainText`] Udmf_ErrCode
147 ///
148 /// Available since API-level: 12
149 #[cfg(feature = "api-12")]
150 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
151 pub fn OH_UdsPlainText_SetAbstract(
152 pThis: *mut OH_UdsPlainText,
153 abstract_: *const ::core::ffi::c_char,
154 ) -> ::core::ffi::c_int;
155 /// Set details to the [`OH_UdsPlainText`].
156 ///
157 /// # Arguments
158 ///
159 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
160 ///
161 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
162 ///
163 /// # Returns
164 ///
165 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
166 /// [`UDMF_E_OK`] success.
167 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
168 /// [`OH_UdsPlainText`] OH_UdsDetails Udmf_ErrCode
169 ///
170 /// Available since API-level: 22
171 #[cfg(feature = "api-22")]
172 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
173 pub fn OH_UdsPlainText_SetDetails(
174 pThis: *mut OH_UdsPlainText,
175 details: *const OH_UdsDetails,
176 ) -> ::core::ffi::c_int;
177 /// Creation a pointer to the instance of the [`OH_UdsHyperlink`].
178 ///
179 ///
180 /// # Returns
181 ///
182 /// * If the operation is successful, a pointer to the instance of [`OH_UdsHyperlink`]
183 /// structure is returned. If the operation is failed, nullptr is returned.
184 /// [`OH_UdsHyperlink`]
185 /// Available since API-level: 12
186 #[cfg(feature = "api-12")]
187 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
188 pub fn OH_UdsHyperlink_Create() -> *mut OH_UdsHyperlink;
189 /// Destroy a pointer that points to the [`OH_UdsHyperlink`] instance.
190 ///
191 /// # Arguments
192 ///
193 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
194 /// [`OH_UdsHyperlink`]
195 /// Available since API-level: 12
196 #[cfg(feature = "api-12")]
197 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
198 pub fn OH_UdsHyperlink_Destroy(pThis: *mut OH_UdsHyperlink);
199 /// Get type from the [`OH_UdsHyperlink`].
200 ///
201 /// # Arguments
202 ///
203 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
204 ///
205 /// # Returns
206 ///
207 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
208 /// [`OH_UdsHyperlink`]
209 /// Available since API-level: 12
210 #[cfg(feature = "api-12")]
211 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
212 pub fn OH_UdsHyperlink_GetType(pThis: *mut OH_UdsHyperlink) -> *const ::core::ffi::c_char;
213 /// Get url from the [`OH_UdsHyperlink`].
214 ///
215 /// # Arguments
216 ///
217 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
218 ///
219 /// # Returns
220 ///
221 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
222 /// [`OH_UdsHyperlink`]
223 /// Available since API-level: 12
224 #[cfg(feature = "api-12")]
225 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
226 pub fn OH_UdsHyperlink_GetUrl(pThis: *mut OH_UdsHyperlink) -> *const ::core::ffi::c_char;
227 /// Get description from the [`OH_UdsHyperlink`].
228 ///
229 /// # Arguments
230 ///
231 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
232 ///
233 /// # Returns
234 ///
235 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
236 /// [`OH_UdsHyperlink`]
237 /// Available since API-level: 12
238 #[cfg(feature = "api-12")]
239 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
240 pub fn OH_UdsHyperlink_GetDescription(
241 pThis: *mut OH_UdsHyperlink,
242 ) -> *const ::core::ffi::c_char;
243 /// Get details from the [`OH_UdsHyperlink`].
244 ///
245 /// # Arguments
246 ///
247 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
248 ///
249 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
250 ///
251 /// # Returns
252 ///
253 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
254 /// [`UDMF_E_OK`] success.
255 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
256 /// [`OH_UdsHyperlink`] OH_UdsDetails Udmf_ErrCode
257 ///
258 /// Available since API-level: 22
259 #[cfg(feature = "api-22")]
260 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
261 pub fn OH_UdsHyperlink_GetDetails(
262 pThis: *mut OH_UdsHyperlink,
263 details: *mut OH_UdsDetails,
264 ) -> ::core::ffi::c_int;
265 /// Set url to the [`OH_UdsHyperlink`].
266 ///
267 /// # Arguments
268 ///
269 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
270 ///
271 /// * `url` - Represents a new string value.
272 ///
273 /// # Returns
274 ///
275 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
276 /// [`UDMF_E_OK`] success.
277 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
278 /// [`OH_UdsHyperlink`] Udmf_ErrCode
279 ///
280 /// Available since API-level: 12
281 #[cfg(feature = "api-12")]
282 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
283 pub fn OH_UdsHyperlink_SetUrl(
284 pThis: *mut OH_UdsHyperlink,
285 url: *const ::core::ffi::c_char,
286 ) -> ::core::ffi::c_int;
287 /// Set description to the [`OH_UdsHyperlink`].
288 ///
289 /// # Arguments
290 ///
291 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
292 ///
293 /// * `description` - Represents a new string value.
294 ///
295 /// # Returns
296 ///
297 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
298 /// [`UDMF_E_OK`] success.
299 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
300 /// [`OH_UdsHyperlink`] Udmf_ErrCode
301 ///
302 /// Available since API-level: 12
303 #[cfg(feature = "api-12")]
304 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
305 pub fn OH_UdsHyperlink_SetDescription(
306 pThis: *mut OH_UdsHyperlink,
307 description: *const ::core::ffi::c_char,
308 ) -> ::core::ffi::c_int;
309 /// Set details to the [`OH_UdsHyperlink`].
310 ///
311 /// # Arguments
312 ///
313 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
314 ///
315 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
316 ///
317 /// # Returns
318 ///
319 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
320 /// [`UDMF_E_OK`] success.
321 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
322 ///
323 /// Available since API-level: 22
324 /// [`OH_UdsHyperlink`] OH_UdsDetails Udmf_ErrCode
325 #[cfg(feature = "api-22")]
326 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
327 pub fn OH_UdsHyperlink_SetDetails(
328 pThis: *mut OH_UdsHyperlink,
329 details: *const OH_UdsDetails,
330 ) -> ::core::ffi::c_int;
331 /// Creation a pointer to the instance of the [`OH_UdsHtml`].
332 ///
333 ///
334 /// # Returns
335 ///
336 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsHtml`]
337 /// structure is returned. If the operation is failed, nullptr is returned.
338 /// [`OH_UdsHtml`]
339 /// Available since API-level: 12
340 #[cfg(feature = "api-12")]
341 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
342 pub fn OH_UdsHtml_Create() -> *mut OH_UdsHtml;
343 /// Destroy a pointer that points to the [`OH_UdsHtml`] instance.
344 ///
345 /// # Arguments
346 ///
347 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
348 /// [`OH_UdsHtml`]
349 /// Available since API-level: 12
350 #[cfg(feature = "api-12")]
351 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
352 pub fn OH_UdsHtml_Destroy(pThis: *mut OH_UdsHtml);
353 /// Get html from the [`OH_UdsHtml`].
354 ///
355 /// # Arguments
356 ///
357 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
358 ///
359 /// # Returns
360 ///
361 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
362 /// [`OH_UdsHtml`]
363 /// Available since API-level: 12
364 #[cfg(feature = "api-12")]
365 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
366 pub fn OH_UdsHtml_GetType(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
367 /// Get content from the [`OH_UdsHtml`].
368 ///
369 /// # Arguments
370 ///
371 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
372 ///
373 /// # Returns
374 ///
375 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
376 /// [`OH_UdsHtml`]
377 /// Available since API-level: 12
378 #[cfg(feature = "api-12")]
379 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
380 pub fn OH_UdsHtml_GetContent(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
381 /// Get plain content from the [`OH_UdsHtml`].
382 ///
383 /// # Arguments
384 ///
385 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
386 ///
387 /// # Returns
388 ///
389 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
390 /// [`OH_UdsHtml`]
391 /// Available since API-level: 12
392 #[cfg(feature = "api-12")]
393 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
394 pub fn OH_UdsHtml_GetPlainContent(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
395 /// Get details from the [`OH_UdsHtml`].
396 ///
397 /// # Arguments
398 ///
399 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
400 ///
401 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
402 ///
403 /// # Returns
404 ///
405 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
406 /// [`UDMF_E_OK`] success.
407 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
408 ///
409 /// Available since API-level: 22
410 /// [`OH_UdsHtml`] OH_UdsDetails Udmf_ErrCode
411 #[cfg(feature = "api-22")]
412 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
413 pub fn OH_UdsHtml_GetDetails(
414 pThis: *mut OH_UdsHtml,
415 details: *mut OH_UdsDetails,
416 ) -> ::core::ffi::c_int;
417 /// Set content to the [`OH_UdsHtml`].
418 ///
419 /// # Arguments
420 ///
421 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
422 ///
423 /// * `content` - Represents a new string value.
424 ///
425 /// # Returns
426 ///
427 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
428 /// [`UDMF_E_OK`] success.
429 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
430 /// [`OH_UdsHtml`] Udmf_ErrCode
431 ///
432 /// Available since API-level: 12
433 #[cfg(feature = "api-12")]
434 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
435 pub fn OH_UdsHtml_SetContent(
436 pThis: *mut OH_UdsHtml,
437 content: *const ::core::ffi::c_char,
438 ) -> ::core::ffi::c_int;
439 /// Set plain content to the [`OH_UdsHtml`].
440 ///
441 /// # Arguments
442 ///
443 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
444 ///
445 /// * `plainContent` - Represents a new string value.
446 ///
447 /// # Returns
448 ///
449 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
450 /// [`UDMF_E_OK`] success.
451 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
452 /// [`OH_UdsHtml`] Udmf_ErrCode
453 ///
454 /// Available since API-level: 12
455 #[cfg(feature = "api-12")]
456 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
457 pub fn OH_UdsHtml_SetPlainContent(
458 pThis: *mut OH_UdsHtml,
459 plainContent: *const ::core::ffi::c_char,
460 ) -> ::core::ffi::c_int;
461 /// Set details to the [`OH_UdsHtml`].
462 ///
463 /// # Arguments
464 ///
465 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
466 ///
467 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
468 ///
469 /// # Returns
470 ///
471 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
472 /// [`UDMF_E_OK`] success.
473 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
474 ///
475 /// Available since API-level: 22
476 /// [`OH_UdsHtml`] OH_UdsDetails Udmf_ErrCode
477 #[cfg(feature = "api-22")]
478 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
479 pub fn OH_UdsHtml_SetDetails(
480 pThis: *mut OH_UdsHtml,
481 details: *const OH_UdsDetails,
482 ) -> ::core::ffi::c_int;
483 /// Creation a pointer to the instance of the [`OH_UdsAppItem`].
484 ///
485 ///
486 /// # Returns
487 ///
488 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsAppItem`]
489 /// structure is returned. sIf the operation is failed, nullptr is returned.
490 /// [`OH_UdsAppItem`]
491 /// Available since API-level: 12
492 #[cfg(feature = "api-12")]
493 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
494 pub fn OH_UdsAppItem_Create() -> *mut OH_UdsAppItem;
495 /// Destroy a pointer that points to the [`OH_UdsAppItem`] instance.
496 ///
497 /// # Arguments
498 ///
499 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
500 /// [`OH_UdsAppItem`]
501 /// Available since API-level: 12
502 #[cfg(feature = "api-12")]
503 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
504 pub fn OH_UdsAppItem_Destroy(pThis: *mut OH_UdsAppItem);
505 /// Get type from the [`OH_UdsAppItem`].
506 ///
507 /// # Arguments
508 ///
509 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
510 ///
511 /// # Returns
512 ///
513 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
514 /// [`OH_UdsAppItem`]
515 /// Available since API-level: 12
516 #[cfg(feature = "api-12")]
517 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
518 pub fn OH_UdsAppItem_GetType(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
519 /// Get app id from the [`OH_UdsAppItem`].
520 ///
521 /// # Arguments
522 ///
523 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
524 ///
525 /// # Returns
526 ///
527 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
528 /// [`OH_UdsAppItem`]
529 /// Available since API-level: 12
530 #[cfg(feature = "api-12")]
531 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
532 pub fn OH_UdsAppItem_GetId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
533 /// Get app name from the [`OH_UdsAppItem`].
534 ///
535 /// # Arguments
536 ///
537 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
538 ///
539 /// # Returns
540 ///
541 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
542 /// [`OH_UdsAppItem`]
543 /// Available since API-level: 12
544 #[cfg(feature = "api-12")]
545 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
546 pub fn OH_UdsAppItem_GetName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
547 /// Get app icon id from the [`OH_UdsAppItem`].
548 ///
549 /// # Arguments
550 ///
551 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
552 ///
553 /// # Returns
554 ///
555 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
556 /// [`OH_UdsAppItem`]
557 /// Available since API-level: 12
558 #[cfg(feature = "api-12")]
559 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
560 pub fn OH_UdsAppItem_GetIconId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
561 /// Get app label id from the [`OH_UdsAppItem`].
562 ///
563 /// # Arguments
564 ///
565 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
566 ///
567 /// # Returns
568 ///
569 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
570 /// [`OH_UdsAppItem`]
571 /// Available since API-level: 12
572 #[cfg(feature = "api-12")]
573 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
574 pub fn OH_UdsAppItem_GetLabelId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
575 /// Get bundle name from the [`OH_UdsAppItem`].
576 ///
577 /// # Arguments
578 ///
579 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
580 ///
581 /// # Returns
582 ///
583 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
584 /// [`OH_UdsAppItem`]
585 /// Available since API-level: 12
586 #[cfg(feature = "api-12")]
587 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
588 pub fn OH_UdsAppItem_GetBundleName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
589 /// Get ability name from the [`OH_UdsAppItem`].
590 ///
591 /// # Arguments
592 ///
593 /// * `pThis` - Represents a pointer to an instance [`OH_UdsAppItem`].
594 ///
595 /// # Returns
596 ///
597 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
598 /// [`OH_UdsAppItem`]
599 /// Available since API-level: 12
600 #[cfg(feature = "api-12")]
601 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
602 pub fn OH_UdsAppItem_GetAbilityName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
603 /// Get details from the [`OH_UdsAppItem`].
604 ///
605 /// # Arguments
606 ///
607 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
608 ///
609 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
610 ///
611 /// # Returns
612 ///
613 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
614 /// [`UDMF_E_OK`] success.
615 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
616 ///
617 /// Available since API-level: 22
618 /// [`OH_UdsAppItem`] OH_UdsDetails Udmf_ErrCode
619 #[cfg(feature = "api-22")]
620 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
621 pub fn OH_UdsAppItem_GetDetails(
622 pThis: *mut OH_UdsAppItem,
623 details: *mut OH_UdsDetails,
624 ) -> ::core::ffi::c_int;
625 /// Set application id to the [`OH_UdsAppItem`].
626 ///
627 /// # Arguments
628 ///
629 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
630 ///
631 /// * `appId` - Represents a new string value.
632 ///
633 /// # Returns
634 ///
635 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
636 /// [`UDMF_E_OK`] success.
637 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
638 /// [`OH_UdsAppItem`] Udmf_ErrCode
639 ///
640 /// Available since API-level: 12
641 #[cfg(feature = "api-12")]
642 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
643 pub fn OH_UdsAppItem_SetId(
644 pThis: *mut OH_UdsAppItem,
645 appId: *const ::core::ffi::c_char,
646 ) -> ::core::ffi::c_int;
647 /// Set application name to the [`OH_UdsAppItem`].
648 ///
649 /// # Arguments
650 ///
651 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
652 ///
653 /// * `appName` - Represents a new string value.
654 ///
655 /// # Returns
656 ///
657 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
658 /// [`UDMF_E_OK`] success.
659 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
660 /// [`OH_UdsAppItem`] Udmf_ErrCode
661 ///
662 /// Available since API-level: 12
663 #[cfg(feature = "api-12")]
664 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
665 pub fn OH_UdsAppItem_SetName(
666 pThis: *mut OH_UdsAppItem,
667 appName: *const ::core::ffi::c_char,
668 ) -> ::core::ffi::c_int;
669 /// Set application icon id to the [`OH_UdsAppItem`].
670 ///
671 /// # Arguments
672 ///
673 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
674 ///
675 /// * `appIconId` - Represents a new string value.
676 ///
677 /// # Returns
678 ///
679 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
680 /// [`UDMF_E_OK`] success.
681 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
682 /// [`OH_UdsAppItem`] Udmf_ErrCode
683 ///
684 /// Available since API-level: 12
685 #[cfg(feature = "api-12")]
686 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
687 pub fn OH_UdsAppItem_SetIconId(
688 pThis: *mut OH_UdsAppItem,
689 appIconId: *const ::core::ffi::c_char,
690 ) -> ::core::ffi::c_int;
691 /// Set application label id to the [`OH_UdsAppItem`].
692 ///
693 /// # Arguments
694 ///
695 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
696 ///
697 /// * `appLabelId` - Represents a new string value.
698 ///
699 /// # Returns
700 ///
701 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
702 /// [`UDMF_E_OK`] success.
703 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
704 /// [`OH_UdsAppItem`] Udmf_ErrCode
705 ///
706 /// Available since API-level: 12
707 #[cfg(feature = "api-12")]
708 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
709 pub fn OH_UdsAppItem_SetLabelId(
710 pThis: *mut OH_UdsAppItem,
711 appLabelId: *const ::core::ffi::c_char,
712 ) -> ::core::ffi::c_int;
713 /// Set bundle name to the [`OH_UdsAppItem`].
714 ///
715 /// # Arguments
716 ///
717 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
718 ///
719 /// * `bundleName` - Represents a new string value.
720 ///
721 /// # Returns
722 ///
723 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
724 /// [`UDMF_E_OK`] success.
725 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
726 /// [`OH_UdsAppItem`] Udmf_ErrCode
727 ///
728 /// Available since API-level: 12
729 #[cfg(feature = "api-12")]
730 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
731 pub fn OH_UdsAppItem_SetBundleName(
732 pThis: *mut OH_UdsAppItem,
733 bundleName: *const ::core::ffi::c_char,
734 ) -> ::core::ffi::c_int;
735 /// Set ability name to the [`OH_UdsAppItem`].
736 ///
737 /// # Arguments
738 ///
739 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
740 ///
741 /// * `abilityName` - Represents a new string value.
742 ///
743 /// # Returns
744 ///
745 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
746 /// [`UDMF_E_OK`] success.
747 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
748 /// [`OH_UdsAppItem`] Udmf_ErrCode
749 ///
750 /// Available since API-level: 12
751 #[cfg(feature = "api-12")]
752 #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
753 pub fn OH_UdsAppItem_SetAbilityName(
754 pThis: *mut OH_UdsAppItem,
755 abilityName: *const ::core::ffi::c_char,
756 ) -> ::core::ffi::c_int;
757 /// Set details to the [`OH_UdsAppItem`].
758 ///
759 /// # Arguments
760 ///
761 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
762 ///
763 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
764 ///
765 /// # Returns
766 ///
767 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
768 /// [`UDMF_E_OK`] success.
769 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
770 /// [`OH_UdsAppItem`] OH_UdsDetails Udmf_ErrCode
771 ///
772 /// Available since API-level: 22
773 #[cfg(feature = "api-22")]
774 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
775 pub fn OH_UdsAppItem_SetDetails(
776 pThis: *mut OH_UdsAppItem,
777 details: *const OH_UdsDetails,
778 ) -> ::core::ffi::c_int;
779 /// Creation a pointer to the instance of the [`OH_UdsFileUri`].
780 ///
781 ///
782 /// # Returns
783 ///
784 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsFileUri`]
785 /// structure is returned. If the memory is not enough, nullptr is returned.
786 /// [`OH_UdsFileUri`]
787 /// Available since API-level: 13
788 #[cfg(feature = "api-13")]
789 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
790 pub fn OH_UdsFileUri_Create() -> *mut OH_UdsFileUri;
791 /// Destroy a pointer that points to the [`OH_UdsFileUri`] instance.
792 ///
793 /// # Arguments
794 ///
795 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
796 /// [`OH_UdsFileUri`]
797 /// Available since API-level: 13
798 #[cfg(feature = "api-13")]
799 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
800 pub fn OH_UdsFileUri_Destroy(pThis: *mut OH_UdsFileUri);
801 /// Get type id from the [`OH_UdsFileUri`].
802 ///
803 /// # Arguments
804 ///
805 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
806 ///
807 /// # Returns
808 ///
809 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
810 /// [`OH_UdsFileUri`]
811 /// Available since API-level: 13
812 #[cfg(feature = "api-13")]
813 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
814 pub fn OH_UdsFileUri_GetType(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
815 /// Get file uri from the [`OH_UdsFileUri`].
816 ///
817 /// # Arguments
818 ///
819 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
820 ///
821 /// # Returns
822 ///
823 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
824 /// [`OH_UdsFileUri`]
825 /// Available since API-level: 13
826 #[cfg(feature = "api-13")]
827 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
828 pub fn OH_UdsFileUri_GetFileUri(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
829 /// Get file type from the [`OH_UdsFileUri`].
830 ///
831 /// # Arguments
832 ///
833 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
834 ///
835 /// # Returns
836 ///
837 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
838 /// [`OH_UdsFileUri`]
839 /// Available since API-level: 13
840 #[cfg(feature = "api-13")]
841 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
842 pub fn OH_UdsFileUri_GetFileType(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
843 /// Get details from the [`OH_UdsFileUri`].
844 ///
845 /// # Arguments
846 ///
847 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
848 ///
849 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
850 ///
851 /// # Returns
852 ///
853 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
854 /// [`UDMF_E_OK`] success.
855 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
856 ///
857 /// Available since API-level: 22
858 /// [`OH_UdsFileUri`] OH_UdsDetails Udmf_ErrCode
859 #[cfg(feature = "api-22")]
860 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
861 pub fn OH_UdsFileUri_GetDetails(
862 pThis: *mut OH_UdsFileUri,
863 details: *mut OH_UdsDetails,
864 ) -> ::core::ffi::c_int;
865 /// Set file uri to the [`OH_UdsFileUri`].
866 ///
867 /// # Arguments
868 ///
869 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
870 ///
871 /// * `fileUri` - Represents a new file uri string.
872 ///
873 /// # Returns
874 ///
875 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
876 /// [`UDMF_E_OK`] success.
877 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
878 /// [`OH_UdsFileUri`] Udmf_ErrCode
879 ///
880 /// Available since API-level: 13
881 #[cfg(feature = "api-13")]
882 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
883 pub fn OH_UdsFileUri_SetFileUri(
884 pThis: *mut OH_UdsFileUri,
885 fileUri: *const ::core::ffi::c_char,
886 ) -> ::core::ffi::c_int;
887 /// Set file type to the [`OH_UdsFileUri`].
888 ///
889 /// # Arguments
890 ///
891 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
892 ///
893 /// * `fileType` - Represents a new file type string.
894 ///
895 /// # Returns
896 ///
897 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
898 /// [`UDMF_E_OK`] success.
899 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
900 /// [`OH_UdsFileUri`] Udmf_ErrCode
901 ///
902 /// Available since API-level: 13
903 #[cfg(feature = "api-13")]
904 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
905 pub fn OH_UdsFileUri_SetFileType(
906 pThis: *mut OH_UdsFileUri,
907 fileType: *const ::core::ffi::c_char,
908 ) -> ::core::ffi::c_int;
909 /// Set details to the [`OH_UdsFileUri`].
910 ///
911 /// # Arguments
912 ///
913 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
914 ///
915 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
916 ///
917 /// # Returns
918 ///
919 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
920 /// [`UDMF_E_OK`] success.
921 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
922 /// [`OH_UdsFileUri`] OH_UdsDetails Udmf_ErrCode
923 ///
924 /// Available since API-level: 22
925 #[cfg(feature = "api-22")]
926 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
927 pub fn OH_UdsFileUri_SetDetails(
928 pThis: *mut OH_UdsFileUri,
929 details: *const OH_UdsDetails,
930 ) -> ::core::ffi::c_int;
931 /// Creation a pointer to the instance of the [`OH_UdsPixelMap`].
932 ///
933 ///
934 /// # Returns
935 ///
936 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsPixelMap`]
937 /// structure is returned. If the memory is not enough, nullptr is returned.
938 /// [`OH_UdsPixelMap`]
939 /// Available since API-level: 13
940 #[cfg(feature = "api-13")]
941 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
942 pub fn OH_UdsPixelMap_Create() -> *mut OH_UdsPixelMap;
943 /// Destroy a pointer that points to the [`OH_UdsPixelMap`] instance.
944 ///
945 /// # Arguments
946 ///
947 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
948 /// [`OH_UdsPixelMap`]
949 /// Available since API-level: 13
950 #[cfg(feature = "api-13")]
951 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
952 pub fn OH_UdsPixelMap_Destroy(pThis: *mut OH_UdsPixelMap);
953 /// Get type id from the [`OH_UdsPixelMap`].
954 ///
955 /// # Arguments
956 ///
957 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
958 ///
959 /// # Returns
960 ///
961 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
962 /// [`OH_UdsPixelMap`]
963 /// Available since API-level: 13
964 #[cfg(feature = "api-13")]
965 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
966 pub fn OH_UdsPixelMap_GetType(pThis: *mut OH_UdsPixelMap) -> *const ::core::ffi::c_char;
967 /// Get pixel map from the [`OH_UdsPixelMap`].
968 ///
969 /// # Arguments
970 ///
971 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
972 ///
973 /// * `pixelmapNative` - Represents output params of [`OH_PixelmapNative`].
974 /// [`OH_UdsPixelMap`]
975 /// Available since API-level: 13
976 #[cfg(feature = "api-13")]
977 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
978 pub fn OH_UdsPixelMap_GetPixelMap(
979 pThis: *mut OH_UdsPixelMap,
980 pixelmapNative: *mut OH_PixelmapNative,
981 );
982 /// Get details from the [`OH_UdsPixelMap`].
983 ///
984 /// # Arguments
985 ///
986 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
987 ///
988 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
989 ///
990 /// # Returns
991 ///
992 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
993 /// [`UDMF_E_OK`] success.
994 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
995 ///
996 /// Available since API-level: 22
997 /// [`OH_UdsPixelMap`] OH_UdsDetails Udmf_ErrCode
998 #[cfg(feature = "api-22")]
999 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1000 pub fn OH_UdsPixelMap_GetDetails(
1001 pThis: *mut OH_UdsPixelMap,
1002 details: *mut OH_UdsDetails,
1003 ) -> ::core::ffi::c_int;
1004 /// Set pixel map to the [`OH_UdsPixelMap`].
1005 ///
1006 /// # Arguments
1007 ///
1008 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
1009 ///
1010 /// * `pixelmapNative` - Represents a new [`OH_PixelmapNative`].
1011 ///
1012 /// # Returns
1013 ///
1014 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1015 /// [`UDMF_E_OK`] success.
1016 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1017 /// [`OH_UdsPixelMap`] Udmf_ErrCode
1018 ///
1019 /// Available since API-level: 13
1020 #[cfg(feature = "api-13")]
1021 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1022 pub fn OH_UdsPixelMap_SetPixelMap(
1023 pThis: *mut OH_UdsPixelMap,
1024 pixelmapNative: *mut OH_PixelmapNative,
1025 ) -> ::core::ffi::c_int;
1026 /// Set details to the [`OH_UdsPixelMap`].
1027 ///
1028 /// # Arguments
1029 ///
1030 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
1031 ///
1032 /// * `details` - Represents a pointer to an instance of [`OH_UdsDetails`]. The pointer cannot be null.
1033 ///
1034 /// # Returns
1035 ///
1036 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1037 /// [`UDMF_E_OK`] success.
1038 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1039 ///
1040 /// Available since API-level: 22
1041 /// [`OH_UdsPixelMap`] OH_UdsDetails Udmf_ErrCode
1042 #[cfg(feature = "api-22")]
1043 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1044 pub fn OH_UdsPixelMap_SetDetails(
1045 pThis: *mut OH_UdsPixelMap,
1046 details: *const OH_UdsDetails,
1047 ) -> ::core::ffi::c_int;
1048 /// Creation a pointer to the instance of the [`OH_UdsArrayBuffer`].
1049 ///
1050 ///
1051 /// # Returns
1052 ///
1053 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsArrayBuffer`]
1054 /// structure is returned. If the memory is not enough, nullptr is returned.
1055 /// [`OH_UdsArrayBuffer`]
1056 /// Available since API-level: 13
1057 #[cfg(feature = "api-13")]
1058 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1059 pub fn OH_UdsArrayBuffer_Create() -> *mut OH_UdsArrayBuffer;
1060 /// Destroy a pointer that points to the [`OH_UdsArrayBuffer`] instance.
1061 ///
1062 /// # Arguments
1063 ///
1064 /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
1065 ///
1066 /// # Returns
1067 ///
1068 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1069 /// [`UDMF_E_OK`] success.
1070 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1071 /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
1072 ///
1073 /// Available since API-level: 13
1074 #[cfg(feature = "api-13")]
1075 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1076 pub fn OH_UdsArrayBuffer_Destroy(buffer: *mut OH_UdsArrayBuffer) -> ::core::ffi::c_int;
1077 /// Set array buffer data to the [`OH_UdsArrayBuffer`].
1078 ///
1079 /// # Arguments
1080 ///
1081 /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
1082 ///
1083 /// * `data` - Represents the array buffer data.
1084 ///
1085 /// * `len` - Represents the length of data param.
1086 ///
1087 /// # Returns
1088 ///
1089 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1090 /// [`UDMF_E_OK`] success.
1091 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1092 /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
1093 ///
1094 /// Available since API-level: 13
1095 #[cfg(feature = "api-13")]
1096 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1097 pub fn OH_UdsArrayBuffer_SetData(
1098 buffer: *mut OH_UdsArrayBuffer,
1099 data: *mut ::core::ffi::c_uchar,
1100 len: ::core::ffi::c_uint,
1101 ) -> ::core::ffi::c_int;
1102 /// Get array buffer data from the [`OH_UdsArrayBuffer`].
1103 ///
1104 /// # Arguments
1105 ///
1106 /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
1107 ///
1108 /// * `data` - Represents a pointer to array buffer data that is a output param.
1109 ///
1110 /// * `len` - Represents the array buffer data length that is a output param.
1111 ///
1112 /// # Returns
1113 ///
1114 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1115 /// [`UDMF_E_OK`] success.
1116 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1117 /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
1118 ///
1119 /// Available since API-level: 13
1120 #[cfg(feature = "api-13")]
1121 #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
1122 pub fn OH_UdsArrayBuffer_GetData(
1123 buffer: *mut OH_UdsArrayBuffer,
1124 data: *mut *mut ::core::ffi::c_uchar,
1125 len: *mut ::core::ffi::c_uint,
1126 ) -> ::core::ffi::c_int;
1127 /// Creation a pointer to the instance of the [`OH_UdsContentForm`].
1128 ///
1129 ///
1130 /// # Returns
1131 ///
1132 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsContentForm`]
1133 /// structure is returned. If the operation is failed, nullptr is returned.
1134 /// [`OH_UdsContentForm`]
1135 /// Available since API-level: 14
1136 #[cfg(feature = "api-14")]
1137 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1138 pub fn OH_UdsContentForm_Create() -> *mut OH_UdsContentForm;
1139 /// Destroy a pointer that points to the [`OH_UdsContentForm`] instance.
1140 ///
1141 /// # Arguments
1142 ///
1143 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1144 /// [`OH_UdsContentForm`]
1145 /// Available since API-level: 14
1146 #[cfg(feature = "api-14")]
1147 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1148 pub fn OH_UdsContentForm_Destroy(pThis: *mut OH_UdsContentForm);
1149 /// Get type id from the [`OH_UdsContentForm`].
1150 ///
1151 /// # Arguments
1152 ///
1153 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1154 ///
1155 /// # Returns
1156 ///
1157 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
1158 /// [`OH_UdsContentForm`]
1159 /// Available since API-level: 14
1160 #[cfg(feature = "api-14")]
1161 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1162 pub fn OH_UdsContentForm_GetType(pThis: *mut OH_UdsContentForm) -> *const ::core::ffi::c_char;
1163 /// Get thumb data from the [`OH_UdsContentForm`].
1164 ///
1165 /// # Arguments
1166 ///
1167 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1168 ///
1169 /// * `thumbData` - Represents a pointer to thumb data that is a output param.
1170 ///
1171 /// * `len` - Represents the thumb data length that is a output param.
1172 ///
1173 /// # Returns
1174 ///
1175 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1176 /// [`UDMF_E_OK`] success.
1177 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1178 /// [`UDMF_ERR`] Internal data error.
1179 /// [`OH_UdsContentForm`] Udmf_ErrCode
1180 ///
1181 /// Available since API-level: 14
1182 #[cfg(feature = "api-14")]
1183 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1184 pub fn OH_UdsContentForm_GetThumbData(
1185 pThis: *mut OH_UdsContentForm,
1186 thumbData: *mut *mut ::core::ffi::c_uchar,
1187 len: *mut ::core::ffi::c_uint,
1188 ) -> ::core::ffi::c_int;
1189 /// Get description from the [`OH_UdsContentForm`].
1190 ///
1191 /// # Arguments
1192 ///
1193 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1194 ///
1195 /// # Returns
1196 ///
1197 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
1198 /// [`OH_UdsContentForm`]
1199 /// Available since API-level: 14
1200 #[cfg(feature = "api-14")]
1201 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1202 pub fn OH_UdsContentForm_GetDescription(
1203 pThis: *mut OH_UdsContentForm,
1204 ) -> *const ::core::ffi::c_char;
1205 /// Get title from the [`OH_UdsContentForm`].
1206 ///
1207 /// # Arguments
1208 ///
1209 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1210 ///
1211 /// # Returns
1212 ///
1213 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
1214 /// [`OH_UdsContentForm`]
1215 /// Available since API-level: 14
1216 #[cfg(feature = "api-14")]
1217 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1218 pub fn OH_UdsContentForm_GetTitle(pThis: *mut OH_UdsContentForm) -> *const ::core::ffi::c_char;
1219 /// Get thumb data from the [`OH_UdsContentForm`].
1220 ///
1221 /// # Arguments
1222 ///
1223 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1224 ///
1225 /// * `appIcon` - Represents a pointer to app icon that is a output param.
1226 ///
1227 /// * `len` - Represents the app icon length that is a output param.
1228 ///
1229 /// # Returns
1230 ///
1231 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1232 /// [`UDMF_E_OK`] success.
1233 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1234 /// [`UDMF_ERR`] Internal data error.
1235 /// [`OH_UdsContentForm`] Udmf_ErrCode
1236 ///
1237 /// Available since API-level: 14
1238 #[cfg(feature = "api-14")]
1239 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1240 pub fn OH_UdsContentForm_GetAppIcon(
1241 pThis: *mut OH_UdsContentForm,
1242 appIcon: *mut *mut ::core::ffi::c_uchar,
1243 len: *mut ::core::ffi::c_uint,
1244 ) -> ::core::ffi::c_int;
1245 /// Get app name from the [`OH_UdsContentForm`].
1246 ///
1247 /// # Arguments
1248 ///
1249 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1250 ///
1251 /// # Returns
1252 ///
1253 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
1254 /// [`OH_UdsContentForm`]
1255 /// Available since API-level: 14
1256 #[cfg(feature = "api-14")]
1257 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1258 pub fn OH_UdsContentForm_GetAppName(
1259 pThis: *mut OH_UdsContentForm,
1260 ) -> *const ::core::ffi::c_char;
1261 /// Get link url from the [`OH_UdsContentForm`].
1262 ///
1263 /// # Arguments
1264 ///
1265 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1266 ///
1267 /// # Returns
1268 ///
1269 /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
1270 /// [`OH_UdsContentForm`]
1271 /// Available since API-level: 14
1272 #[cfg(feature = "api-14")]
1273 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1274 pub fn OH_UdsContentForm_GetLinkUri(
1275 pThis: *mut OH_UdsContentForm,
1276 ) -> *const ::core::ffi::c_char;
1277 /// Set thumb data to the [`OH_UdsContentForm`].
1278 ///
1279 /// # Arguments
1280 ///
1281 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1282 ///
1283 /// * `thumbData` - Represents the thumb data.
1284 ///
1285 /// * `len` - Represents the length of thumb data param.
1286 ///
1287 /// # Returns
1288 ///
1289 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1290 /// [`UDMF_E_OK`] success.
1291 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1292 /// [`OH_UdsContentForm`] Udmf_ErrCode
1293 ///
1294 /// Available since API-level: 14
1295 #[cfg(feature = "api-14")]
1296 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1297 pub fn OH_UdsContentForm_SetThumbData(
1298 pThis: *mut OH_UdsContentForm,
1299 thumbData: *const ::core::ffi::c_uchar,
1300 len: ::core::ffi::c_uint,
1301 ) -> ::core::ffi::c_int;
1302 /// Set description to the [`OH_UdsContentForm`].
1303 ///
1304 /// # Arguments
1305 ///
1306 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1307 ///
1308 /// * `description` - Represents a description string.
1309 ///
1310 /// # Returns
1311 ///
1312 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1313 /// [`UDMF_E_OK`] success.
1314 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1315 /// [`OH_UdsContentForm`] Udmf_ErrCode
1316 ///
1317 /// Available since API-level: 14
1318 #[cfg(feature = "api-14")]
1319 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1320 pub fn OH_UdsContentForm_SetDescription(
1321 pThis: *mut OH_UdsContentForm,
1322 description: *const ::core::ffi::c_char,
1323 ) -> ::core::ffi::c_int;
1324 /// Set title to the [`OH_UdsContentForm`].
1325 ///
1326 /// # Arguments
1327 ///
1328 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1329 ///
1330 /// * `title` - Represents a title string.
1331 ///
1332 /// # Returns
1333 ///
1334 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1335 /// [`UDMF_E_OK`] success.
1336 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1337 /// [`OH_UdsContentForm`] Udmf_ErrCode
1338 ///
1339 /// Available since API-level: 14
1340 #[cfg(feature = "api-14")]
1341 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1342 pub fn OH_UdsContentForm_SetTitle(
1343 pThis: *mut OH_UdsContentForm,
1344 title: *const ::core::ffi::c_char,
1345 ) -> ::core::ffi::c_int;
1346 /// Set thumb data to the [`OH_UdsContentForm`].
1347 ///
1348 /// # Arguments
1349 ///
1350 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1351 ///
1352 /// * `appIcon` - Represents the app icon.
1353 ///
1354 /// * `len` - Represents the length of app icon param.
1355 ///
1356 /// # Returns
1357 ///
1358 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1359 /// [`UDMF_E_OK`] success.
1360 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1361 /// [`OH_UdsContentForm`] Udmf_ErrCode
1362 ///
1363 /// Available since API-level: 14
1364 #[cfg(feature = "api-14")]
1365 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1366 pub fn OH_UdsContentForm_SetAppIcon(
1367 pThis: *mut OH_UdsContentForm,
1368 appIcon: *const ::core::ffi::c_uchar,
1369 len: ::core::ffi::c_uint,
1370 ) -> ::core::ffi::c_int;
1371 /// Set app name to the [`OH_UdsContentForm`].
1372 ///
1373 /// # Arguments
1374 ///
1375 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1376 ///
1377 /// * `appName` - Represents a app name string.
1378 ///
1379 /// # Returns
1380 ///
1381 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1382 /// [`UDMF_E_OK`] success.
1383 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1384 /// [`OH_UdsContentForm`] Udmf_ErrCode
1385 ///
1386 /// Available since API-level: 14
1387 #[cfg(feature = "api-14")]
1388 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1389 pub fn OH_UdsContentForm_SetAppName(
1390 pThis: *mut OH_UdsContentForm,
1391 appName: *const ::core::ffi::c_char,
1392 ) -> ::core::ffi::c_int;
1393 /// Set link uri to the [`OH_UdsContentForm`].
1394 ///
1395 /// # Arguments
1396 ///
1397 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1398 ///
1399 /// * `linkUri` - Represents a link uri string.
1400 ///
1401 /// # Returns
1402 ///
1403 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1404 /// [`UDMF_E_OK`] success.
1405 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1406 /// [`OH_UdsContentForm`] Udmf_ErrCode
1407 ///
1408 /// Available since API-level: 14
1409 #[cfg(feature = "api-14")]
1410 #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1411 pub fn OH_UdsContentForm_SetLinkUri(
1412 pThis: *mut OH_UdsContentForm,
1413 linkUri: *const ::core::ffi::c_char,
1414 ) -> ::core::ffi::c_int;
1415 /// Creation a pointer to the instance of the [`OH_UdsDetails`].
1416 ///
1417 ///
1418 /// # Returns
1419 ///
1420 /// * If the operation is successful, a pointer to the instance of the [`OH_UdsDetails`]
1421 /// structure is returned. If the operation is failed, nullptr is returned.
1422 ///
1423 /// Available since API-level: 22
1424 /// [`OH_UdsDetails`]
1425 #[cfg(feature = "api-22")]
1426 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1427 pub fn OH_UdsDetails_Create() -> *mut OH_UdsDetails;
1428 /// Destroy a pointer that points to the [`OH_UdsDetails`] instance.
1429 ///
1430 /// # Arguments
1431 ///
1432 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1433 ///
1434 /// Available since API-level: 22
1435 /// [`OH_UdsDetails`]
1436 #[cfg(feature = "api-22")]
1437 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1438 pub fn OH_UdsDetails_Destroy(pThis: *mut OH_UdsDetails);
1439 /// Determine whether the [`OH_UdsDetails`] contain the specified key.
1440 ///
1441 /// # Arguments
1442 ///
1443 /// * `pThis` - Represents a pointer to an instance of the [`OH_UdsDetails`].
1444 ///
1445 /// * `key` - Represents key in the details.
1446 ///
1447 /// # Returns
1448 ///
1449 /// * Returns the status code of the execution.
1450 /// `false` Represents The details do not contain the key.
1451 /// `true` Represents The details contain the key.
1452 /// [`OH_UdsDetails`]
1453 /// Available since API-level: 22
1454 #[cfg(feature = "api-22")]
1455 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1456 pub fn OH_UdsDetails_HasKey(
1457 pThis: *const OH_UdsDetails,
1458 key: *const ::core::ffi::c_char,
1459 ) -> bool;
1460 /// Remove the value corresponding to this key from the [`OH_UdsDetails`].
1461 ///
1462 /// # Arguments
1463 ///
1464 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1465 ///
1466 /// * `key` - Represents key in the details.
1467 ///
1468 /// # Returns
1469 ///
1470 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1471 /// [`UDMF_E_OK`] success.
1472 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1473 ///
1474 /// Available since API-level: 22
1475 /// [`OH_UdsDetails`] Udmf_ErrCode
1476 #[cfg(feature = "api-22")]
1477 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1478 pub fn OH_UdsDetails_Remove(
1479 pThis: *mut OH_UdsDetails,
1480 key: *const ::core::ffi::c_char,
1481 ) -> ::core::ffi::c_int;
1482 /// Clear all data in the [`OH_UdsDetails`].
1483 ///
1484 /// # Arguments
1485 ///
1486 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1487 ///
1488 /// # Returns
1489 ///
1490 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1491 /// [`UDMF_E_OK`] success.
1492 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1493 ///
1494 /// Available since API-level: 22
1495 /// [`OH_UdsDetails`] Udmf_ErrCode
1496 #[cfg(feature = "api-22")]
1497 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1498 pub fn OH_UdsDetails_Clear(pThis: *mut OH_UdsDetails) -> ::core::ffi::c_int;
1499 /// Set key-value data to the [`OH_UdsDetails`].
1500 ///
1501 /// # Arguments
1502 ///
1503 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1504 ///
1505 /// * `key` - Represents the key data to be written.
1506 ///
1507 /// * `value` - Represents the value data to be written.
1508 ///
1509 /// # Returns
1510 ///
1511 /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1512 /// [`UDMF_E_OK`] success.
1513 /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1514 ///
1515 /// Available since API-level: 22
1516 /// [`OH_UdsDetails`] Udmf_ErrCode
1517 #[cfg(feature = "api-22")]
1518 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1519 pub fn OH_UdsDetails_SetValue(
1520 pThis: *mut OH_UdsDetails,
1521 key: *const ::core::ffi::c_char,
1522 value: *const ::core::ffi::c_char,
1523 ) -> ::core::ffi::c_int;
1524 /// Get the value from the [`OH_UdsDetails`] using the key.
1525 ///
1526 /// # Arguments
1527 ///
1528 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1529 ///
1530 /// * `key` - Represents key in the details.
1531 ///
1532 /// # Returns
1533 ///
1534 /// * Returns a string pointer when input args normally, otherwise return nullptr.
1535 ///
1536 /// Available since API-level: 22
1537 /// [`OH_UdsDetails`]
1538 #[cfg(feature = "api-22")]
1539 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1540 pub fn OH_UdsDetails_GetValue(
1541 pThis: *const OH_UdsDetails,
1542 key: *const ::core::ffi::c_char,
1543 ) -> *const ::core::ffi::c_char;
1544 /// Get the all keys from the [`OH_UdsDetails`].
1545 ///
1546 /// # Arguments
1547 ///
1548 /// * `pThis` - Represents a pointer to an instance of [`OH_UdsDetails`].
1549 ///
1550 /// * `count` - Represents the keys count.
1551 ///
1552 /// # Returns
1553 ///
1554 /// * Returns string list of keys. Memory will be released after calling the OH_UdsDetails_Destroy function.
1555 ///
1556 /// Available since API-level: 22
1557 /// [`OH_UdsDetails`]
1558 #[cfg(feature = "api-22")]
1559 #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
1560 pub fn OH_UdsDetails_GetAllKeys(
1561 pThis: *mut OH_UdsDetails,
1562 count: *mut ::core::ffi::c_uint,
1563 ) -> *mut *mut ::core::ffi::c_char;
1564}