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
14extern "C" {
15    /// Creation a pointer to the instance of the [`OH_UdsPlainText`].
16    ///
17    ///
18    /// # Returns
19    ///
20    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsPlainText`]
21    /// structure is returned. If the operation is failed, nullptr is returned.
22    /// [`OH_UdsPlainText`]
23    /// Available since API-level: 12
24    #[cfg(feature = "api-12")]
25    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
26    pub fn OH_UdsPlainText_Create() -> *mut OH_UdsPlainText;
27    /// Destroy a pointer that points to the [`OH_UdsPlainText`] instance.
28    ///
29    /// # Arguments
30    ///
31    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
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_Destroy(pThis: *mut OH_UdsPlainText);
37    /// Get type id from the [`OH_UdsPlainText`].
38    ///
39    /// # Arguments
40    ///
41    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
42    ///
43    /// # Returns
44    ///
45    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
46    /// [`OH_UdsPlainText`]
47    /// Available since API-level: 12
48    #[cfg(feature = "api-12")]
49    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
50    pub fn OH_UdsPlainText_GetType(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
51    /// Get content from the [`OH_UdsPlainText`].
52    ///
53    /// # Arguments
54    ///
55    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
56    ///
57    /// # Returns
58    ///
59    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
60    /// [`OH_UdsPlainText`]
61    /// Available since API-level: 12
62    #[cfg(feature = "api-12")]
63    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
64    pub fn OH_UdsPlainText_GetContent(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
65    /// Get abstract from the [`OH_UdsPlainText`].
66    ///
67    /// # Arguments
68    ///
69    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
70    ///
71    /// # Returns
72    ///
73    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
74    /// [`OH_UdsPlainText`]
75    /// Available since API-level: 12
76    #[cfg(feature = "api-12")]
77    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
78    pub fn OH_UdsPlainText_GetAbstract(pThis: *mut OH_UdsPlainText) -> *const ::core::ffi::c_char;
79    /// Set content to the [`OH_UdsPlainText`].
80    ///
81    /// # Arguments
82    ///
83    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
84    ///
85    /// * `content` - Represents a new content string.
86    ///
87    /// # Returns
88    ///
89    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
90    /// [`UDMF_E_OK`] success.
91    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
92    /// [`OH_UdsPlainText`] Udmf_ErrCode
93    ///
94    /// Available since API-level: 12
95    #[cfg(feature = "api-12")]
96    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
97    pub fn OH_UdsPlainText_SetContent(
98        pThis: *mut OH_UdsPlainText,
99        content: *const ::core::ffi::c_char,
100    ) -> ::core::ffi::c_int;
101    /// Set abstract to the [`OH_UdsPlainText`].
102    ///
103    /// # Arguments
104    ///
105    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPlainText`].
106    ///
107    /// * `abstract` - Represents a new string value.
108    ///
109    /// # Returns
110    ///
111    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
112    /// [`UDMF_E_OK`] success.
113    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
114    /// [`OH_UdsPlainText`] Udmf_ErrCode
115    ///
116    /// Available since API-level: 12
117    #[cfg(feature = "api-12")]
118    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
119    pub fn OH_UdsPlainText_SetAbstract(
120        pThis: *mut OH_UdsPlainText,
121        abstract_: *const ::core::ffi::c_char,
122    ) -> ::core::ffi::c_int;
123    /// Creation a pointer to the instance of the [`OH_UdsHyperlink`].
124    ///
125    ///
126    /// # Returns
127    ///
128    /// * If the operation is successful, a pointer to the instance of [`OH_UdsHyperlink`]
129    /// structure is returned. If the operation is failed, nullptr is returned.
130    /// [`OH_UdsHyperlink`]
131    /// Available since API-level: 12
132    #[cfg(feature = "api-12")]
133    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
134    pub fn OH_UdsHyperlink_Create() -> *mut OH_UdsHyperlink;
135    /// Destroy a pointer that points to the [`OH_UdsHyperlink`] instance.
136    ///
137    /// # Arguments
138    ///
139    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
140    /// [`OH_UdsHyperlink`]
141    /// Available since API-level: 12
142    #[cfg(feature = "api-12")]
143    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
144    pub fn OH_UdsHyperlink_Destroy(pThis: *mut OH_UdsHyperlink);
145    /// Get type from the [`OH_UdsHyperlink`].
146    ///
147    /// # Arguments
148    ///
149    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
150    ///
151    /// # Returns
152    ///
153    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
154    /// [`OH_UdsHyperlink`]
155    /// Available since API-level: 12
156    #[cfg(feature = "api-12")]
157    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
158    pub fn OH_UdsHyperlink_GetType(pThis: *mut OH_UdsHyperlink) -> *const ::core::ffi::c_char;
159    /// Get url from the [`OH_UdsHyperlink`].
160    ///
161    /// # Arguments
162    ///
163    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
164    ///
165    /// # Returns
166    ///
167    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
168    /// [`OH_UdsHyperlink`]
169    /// Available since API-level: 12
170    #[cfg(feature = "api-12")]
171    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
172    pub fn OH_UdsHyperlink_GetUrl(pThis: *mut OH_UdsHyperlink) -> *const ::core::ffi::c_char;
173    /// Get description from the [`OH_UdsHyperlink`].
174    ///
175    /// # Arguments
176    ///
177    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
178    ///
179    /// # Returns
180    ///
181    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
182    /// [`OH_UdsHyperlink`]
183    /// Available since API-level: 12
184    #[cfg(feature = "api-12")]
185    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
186    pub fn OH_UdsHyperlink_GetDescription(
187        pThis: *mut OH_UdsHyperlink,
188    ) -> *const ::core::ffi::c_char;
189    /// Set url to the [`OH_UdsHyperlink`].
190    ///
191    /// # Arguments
192    ///
193    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
194    ///
195    /// * `url` - Represents a new string value.
196    ///
197    /// # Returns
198    ///
199    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
200    /// [`UDMF_E_OK`] success.
201    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
202    /// [`OH_UdsHyperlink`] Udmf_ErrCode
203    ///
204    /// Available since API-level: 12
205    #[cfg(feature = "api-12")]
206    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
207    pub fn OH_UdsHyperlink_SetUrl(
208        pThis: *mut OH_UdsHyperlink,
209        url: *const ::core::ffi::c_char,
210    ) -> ::core::ffi::c_int;
211    /// Set description to the [`OH_UdsHyperlink`].
212    ///
213    /// # Arguments
214    ///
215    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHyperlink`].
216    ///
217    /// * `description` - Represents a new string value.
218    ///
219    /// # Returns
220    ///
221    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
222    /// [`UDMF_E_OK`] success.
223    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
224    /// [`OH_UdsHyperlink`] Udmf_ErrCode
225    ///
226    /// Available since API-level: 12
227    #[cfg(feature = "api-12")]
228    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
229    pub fn OH_UdsHyperlink_SetDescription(
230        pThis: *mut OH_UdsHyperlink,
231        description: *const ::core::ffi::c_char,
232    ) -> ::core::ffi::c_int;
233    /// Creation a pointer to the instance of the [`OH_UdsHtml`].
234    ///
235    ///
236    /// # Returns
237    ///
238    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsHtml`]
239    /// structure is returned. If the operation is failed, nullptr is returned.
240    /// [`OH_UdsHtml`]
241    /// Available since API-level: 12
242    #[cfg(feature = "api-12")]
243    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
244    pub fn OH_UdsHtml_Create() -> *mut OH_UdsHtml;
245    /// Destroy a pointer that points to the [`OH_UdsHtml`] instance.
246    ///
247    /// # Arguments
248    ///
249    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
250    /// [`OH_UdsHtml`]
251    /// Available since API-level: 12
252    #[cfg(feature = "api-12")]
253    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
254    pub fn OH_UdsHtml_Destroy(pThis: *mut OH_UdsHtml);
255    /// Get html from the [`OH_UdsHtml`].
256    ///
257    /// # Arguments
258    ///
259    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
260    ///
261    /// # Returns
262    ///
263    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
264    /// [`OH_UdsHtml`]
265    /// Available since API-level: 12
266    #[cfg(feature = "api-12")]
267    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
268    pub fn OH_UdsHtml_GetType(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
269    /// Get content from the [`OH_UdsHtml`].
270    ///
271    /// # Arguments
272    ///
273    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
274    ///
275    /// # Returns
276    ///
277    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
278    /// [`OH_UdsHtml`]
279    /// Available since API-level: 12
280    #[cfg(feature = "api-12")]
281    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
282    pub fn OH_UdsHtml_GetContent(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
283    /// Get plain content from the [`OH_UdsHtml`].
284    ///
285    /// # Arguments
286    ///
287    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
288    ///
289    /// # Returns
290    ///
291    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
292    /// [`OH_UdsHtml`]
293    /// Available since API-level: 12
294    #[cfg(feature = "api-12")]
295    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
296    pub fn OH_UdsHtml_GetPlainContent(pThis: *mut OH_UdsHtml) -> *const ::core::ffi::c_char;
297    /// Set content to the [`OH_UdsHtml`].
298    ///
299    /// # Arguments
300    ///
301    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
302    ///
303    /// * `content` - Represents a new string value.
304    ///
305    /// # Returns
306    ///
307    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
308    /// [`UDMF_E_OK`] success.
309    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
310    /// [`OH_UdsHtml`] Udmf_ErrCode
311    ///
312    /// Available since API-level: 12
313    #[cfg(feature = "api-12")]
314    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
315    pub fn OH_UdsHtml_SetContent(
316        pThis: *mut OH_UdsHtml,
317        content: *const ::core::ffi::c_char,
318    ) -> ::core::ffi::c_int;
319    /// Set plain content to the [`OH_UdsHtml`].
320    ///
321    /// # Arguments
322    ///
323    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsHtml`].
324    ///
325    /// * `plainContent` - Represents a new string value.
326    ///
327    /// # Returns
328    ///
329    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
330    /// [`UDMF_E_OK`] success.
331    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
332    /// [`OH_UdsHtml`] Udmf_ErrCode
333    ///
334    /// Available since API-level: 12
335    #[cfg(feature = "api-12")]
336    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
337    pub fn OH_UdsHtml_SetPlainContent(
338        pThis: *mut OH_UdsHtml,
339        plainContent: *const ::core::ffi::c_char,
340    ) -> ::core::ffi::c_int;
341    /// Creation a pointer to the instance of the [`OH_UdsAppItem`].
342    ///
343    ///
344    /// # Returns
345    ///
346    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsAppItem`]
347    /// structure is returned. sIf the operation is failed, nullptr is returned.
348    /// [`OH_UdsAppItem`]
349    /// Available since API-level: 12
350    #[cfg(feature = "api-12")]
351    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
352    pub fn OH_UdsAppItem_Create() -> *mut OH_UdsAppItem;
353    /// Destroy a pointer that points to the [`OH_UdsAppItem`] instance.
354    ///
355    /// # Arguments
356    ///
357    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
358    /// [`OH_UdsAppItem`]
359    /// Available since API-level: 12
360    #[cfg(feature = "api-12")]
361    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
362    pub fn OH_UdsAppItem_Destroy(pThis: *mut OH_UdsAppItem);
363    /// Get type from the [`OH_UdsAppItem`].
364    ///
365    /// # Arguments
366    ///
367    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
368    ///
369    /// # Returns
370    ///
371    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
372    /// [`OH_UdsAppItem`]
373    /// Available since API-level: 12
374    #[cfg(feature = "api-12")]
375    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
376    pub fn OH_UdsAppItem_GetType(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
377    /// Get app id from the [`OH_UdsAppItem`].
378    ///
379    /// # Arguments
380    ///
381    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
382    ///
383    /// # Returns
384    ///
385    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
386    /// [`OH_UdsAppItem`]
387    /// Available since API-level: 12
388    #[cfg(feature = "api-12")]
389    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
390    pub fn OH_UdsAppItem_GetId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
391    /// Get app name from the [`OH_UdsAppItem`].
392    ///
393    /// # Arguments
394    ///
395    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
396    ///
397    /// # Returns
398    ///
399    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
400    /// [`OH_UdsAppItem`]
401    /// Available since API-level: 12
402    #[cfg(feature = "api-12")]
403    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
404    pub fn OH_UdsAppItem_GetName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
405    /// Get app icon id from the [`OH_UdsAppItem`].
406    ///
407    /// # Arguments
408    ///
409    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
410    ///
411    /// # Returns
412    ///
413    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
414    /// [`OH_UdsAppItem`]
415    /// Available since API-level: 12
416    #[cfg(feature = "api-12")]
417    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
418    pub fn OH_UdsAppItem_GetIconId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
419    /// Get app label id from the [`OH_UdsAppItem`].
420    ///
421    /// # Arguments
422    ///
423    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
424    ///
425    /// # Returns
426    ///
427    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
428    /// [`OH_UdsAppItem`]
429    /// Available since API-level: 12
430    #[cfg(feature = "api-12")]
431    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
432    pub fn OH_UdsAppItem_GetLabelId(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
433    /// Get bundle name from the [`OH_UdsAppItem`].
434    ///
435    /// # Arguments
436    ///
437    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
438    ///
439    /// # Returns
440    ///
441    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
442    /// [`OH_UdsAppItem`]
443    /// Available since API-level: 12
444    #[cfg(feature = "api-12")]
445    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
446    pub fn OH_UdsAppItem_GetBundleName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
447    /// Get ability name from the [`OH_UdsAppItem`].
448    ///
449    /// # Arguments
450    ///
451    /// * `pThis` - Represents a pointer to an instance [`OH_UdsAppItem`].
452    ///
453    /// # Returns
454    ///
455    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
456    /// [`OH_UdsAppItem`]
457    /// Available since API-level: 12
458    #[cfg(feature = "api-12")]
459    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
460    pub fn OH_UdsAppItem_GetAbilityName(pThis: *mut OH_UdsAppItem) -> *const ::core::ffi::c_char;
461    /// Set application id to the [`OH_UdsAppItem`].
462    ///
463    /// # Arguments
464    ///
465    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
466    ///
467    /// * `appId` - Represents a new string value.
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    /// [`OH_UdsAppItem`] Udmf_ErrCode
475    ///
476    /// Available since API-level: 12
477    #[cfg(feature = "api-12")]
478    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
479    pub fn OH_UdsAppItem_SetId(
480        pThis: *mut OH_UdsAppItem,
481        appId: *const ::core::ffi::c_char,
482    ) -> ::core::ffi::c_int;
483    /// Set application name to the [`OH_UdsAppItem`].
484    ///
485    /// # Arguments
486    ///
487    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
488    ///
489    /// * `appName` - Represents a new string value.
490    ///
491    /// # Returns
492    ///
493    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
494    /// [`UDMF_E_OK`] success.
495    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
496    /// [`OH_UdsAppItem`] Udmf_ErrCode
497    ///
498    /// Available since API-level: 12
499    #[cfg(feature = "api-12")]
500    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
501    pub fn OH_UdsAppItem_SetName(
502        pThis: *mut OH_UdsAppItem,
503        appName: *const ::core::ffi::c_char,
504    ) -> ::core::ffi::c_int;
505    /// Set application icon id to the [`OH_UdsAppItem`].
506    ///
507    /// # Arguments
508    ///
509    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
510    ///
511    /// * `appIconId` - Represents a new string value.
512    ///
513    /// # Returns
514    ///
515    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
516    /// [`UDMF_E_OK`] success.
517    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
518    /// [`OH_UdsAppItem`] Udmf_ErrCode
519    ///
520    /// Available since API-level: 12
521    #[cfg(feature = "api-12")]
522    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
523    pub fn OH_UdsAppItem_SetIconId(
524        pThis: *mut OH_UdsAppItem,
525        appIconId: *const ::core::ffi::c_char,
526    ) -> ::core::ffi::c_int;
527    /// Set application label id to the [`OH_UdsAppItem`].
528    ///
529    /// # Arguments
530    ///
531    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
532    ///
533    /// * `appLabelId` - Represents a new string value.
534    ///
535    /// # Returns
536    ///
537    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
538    /// [`UDMF_E_OK`] success.
539    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
540    /// [`OH_UdsAppItem`] Udmf_ErrCode
541    ///
542    /// Available since API-level: 12
543    #[cfg(feature = "api-12")]
544    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
545    pub fn OH_UdsAppItem_SetLabelId(
546        pThis: *mut OH_UdsAppItem,
547        appLabelId: *const ::core::ffi::c_char,
548    ) -> ::core::ffi::c_int;
549    /// Set bundle name to the [`OH_UdsAppItem`].
550    ///
551    /// # Arguments
552    ///
553    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
554    ///
555    /// * `bundleName` - Represents a new string value.
556    ///
557    /// # Returns
558    ///
559    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
560    /// [`UDMF_E_OK`] success.
561    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
562    /// [`OH_UdsAppItem`] Udmf_ErrCode
563    ///
564    /// Available since API-level: 12
565    #[cfg(feature = "api-12")]
566    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
567    pub fn OH_UdsAppItem_SetBundleName(
568        pThis: *mut OH_UdsAppItem,
569        bundleName: *const ::core::ffi::c_char,
570    ) -> ::core::ffi::c_int;
571    /// Set ability name to the [`OH_UdsAppItem`].
572    ///
573    /// # Arguments
574    ///
575    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsAppItem`].
576    ///
577    /// * `abilityName` - Represents a new string value.
578    ///
579    /// # Returns
580    ///
581    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
582    /// [`UDMF_E_OK`] success.
583    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
584    /// [`OH_UdsAppItem`] Udmf_ErrCode
585    ///
586    /// Available since API-level: 12
587    #[cfg(feature = "api-12")]
588    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
589    pub fn OH_UdsAppItem_SetAbilityName(
590        pThis: *mut OH_UdsAppItem,
591        abilityName: *const ::core::ffi::c_char,
592    ) -> ::core::ffi::c_int;
593    /// Creation a pointer to the instance of the [`OH_UdsFileUri`].
594    ///
595    ///
596    /// # Returns
597    ///
598    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsFileUri`]
599    /// structure is returned. If the memory is not enough, nullptr is returned.
600    /// [`OH_UdsFileUri`]
601    /// Available since API-level: 13
602    #[cfg(feature = "api-13")]
603    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
604    pub fn OH_UdsFileUri_Create() -> *mut OH_UdsFileUri;
605    /// Destroy a pointer that points to the [`OH_UdsFileUri`] instance.
606    ///
607    /// # Arguments
608    ///
609    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
610    /// [`OH_UdsFileUri`]
611    /// Available since API-level: 13
612    #[cfg(feature = "api-13")]
613    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
614    pub fn OH_UdsFileUri_Destroy(pThis: *mut OH_UdsFileUri);
615    /// Get type id from the [`OH_UdsFileUri`].
616    ///
617    /// # Arguments
618    ///
619    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
620    ///
621    /// # Returns
622    ///
623    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
624    /// [`OH_UdsFileUri`]
625    /// Available since API-level: 13
626    #[cfg(feature = "api-13")]
627    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
628    pub fn OH_UdsFileUri_GetType(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
629    /// Get file uri from the [`OH_UdsFileUri`].
630    ///
631    /// # Arguments
632    ///
633    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
634    ///
635    /// # Returns
636    ///
637    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
638    /// [`OH_UdsFileUri`]
639    /// Available since API-level: 13
640    #[cfg(feature = "api-13")]
641    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
642    pub fn OH_UdsFileUri_GetFileUri(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
643    /// Get file type from the [`OH_UdsFileUri`].
644    ///
645    /// # Arguments
646    ///
647    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
648    ///
649    /// # Returns
650    ///
651    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
652    /// [`OH_UdsFileUri`]
653    /// Available since API-level: 13
654    #[cfg(feature = "api-13")]
655    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
656    pub fn OH_UdsFileUri_GetFileType(pThis: *mut OH_UdsFileUri) -> *const ::core::ffi::c_char;
657    /// Set file uri to the [`OH_UdsFileUri`].
658    ///
659    /// # Arguments
660    ///
661    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
662    ///
663    /// * `fileUri` - Represents a new file uri string.
664    ///
665    /// # Returns
666    ///
667    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
668    /// [`UDMF_E_OK`] success.
669    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
670    /// [`OH_UdsFileUri`] Udmf_ErrCode
671    ///
672    /// Available since API-level: 13
673    #[cfg(feature = "api-13")]
674    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
675    pub fn OH_UdsFileUri_SetFileUri(
676        pThis: *mut OH_UdsFileUri,
677        fileUri: *const ::core::ffi::c_char,
678    ) -> ::core::ffi::c_int;
679    /// Set file type to the [`OH_UdsFileUri`].
680    ///
681    /// # Arguments
682    ///
683    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsFileUri`].
684    ///
685    /// * `fileType` - Represents a new file type string.
686    ///
687    /// # Returns
688    ///
689    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
690    /// [`UDMF_E_OK`] success.
691    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
692    /// [`OH_UdsFileUri`] Udmf_ErrCode
693    ///
694    /// Available since API-level: 13
695    #[cfg(feature = "api-13")]
696    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
697    pub fn OH_UdsFileUri_SetFileType(
698        pThis: *mut OH_UdsFileUri,
699        fileType: *const ::core::ffi::c_char,
700    ) -> ::core::ffi::c_int;
701    /// Creation a pointer to the instance of the [`OH_UdsPixelMap`].
702    ///
703    ///
704    /// # Returns
705    ///
706    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsPixelMap`]
707    /// structure is returned. If the memory is not enough, nullptr is returned.
708    /// [`OH_UdsPixelMap`]
709    /// Available since API-level: 13
710    #[cfg(feature = "api-13")]
711    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
712    pub fn OH_UdsPixelMap_Create() -> *mut OH_UdsPixelMap;
713    /// Destroy a pointer that points to the [`OH_UdsPixelMap`] instance.
714    ///
715    /// # Arguments
716    ///
717    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
718    /// [`OH_UdsPixelMap`]
719    /// Available since API-level: 13
720    #[cfg(feature = "api-13")]
721    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
722    pub fn OH_UdsPixelMap_Destroy(pThis: *mut OH_UdsPixelMap);
723    /// Get type id from the [`OH_UdsPixelMap`].
724    ///
725    /// # Arguments
726    ///
727    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
728    ///
729    /// # Returns
730    ///
731    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
732    /// [`OH_UdsPixelMap`]
733    /// Available since API-level: 13
734    #[cfg(feature = "api-13")]
735    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
736    pub fn OH_UdsPixelMap_GetType(pThis: *mut OH_UdsPixelMap) -> *const ::core::ffi::c_char;
737    /// Get pixel map from the [`OH_UdsPixelMap`].
738    ///
739    /// # Arguments
740    ///
741    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
742    ///
743    /// * `pixelmapNative` - Represents output params of [`OH_PixelmapNative`].
744    /// [`OH_UdsPixelMap`]
745    /// Available since API-level: 13
746    #[cfg(feature = "api-13")]
747    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
748    pub fn OH_UdsPixelMap_GetPixelMap(
749        pThis: *mut OH_UdsPixelMap,
750        pixelmapNative: *mut OH_PixelmapNative,
751    );
752    /// Set pixel map to the [`OH_UdsPixelMap`].
753    ///
754    /// # Arguments
755    ///
756    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsPixelMap`].
757    ///
758    /// * `pixelmapNative` - Represents a new [`OH_PixelmapNative`].
759    ///
760    /// # Returns
761    ///
762    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
763    /// [`UDMF_E_OK`] success.
764    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
765    /// [`OH_UdsPixelMap`] Udmf_ErrCode
766    ///
767    /// Available since API-level: 13
768    #[cfg(feature = "api-13")]
769    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
770    pub fn OH_UdsPixelMap_SetPixelMap(
771        pThis: *mut OH_UdsPixelMap,
772        pixelmapNative: *mut OH_PixelmapNative,
773    ) -> ::core::ffi::c_int;
774    /// Creation a pointer to the instance of the [`OH_UdsArrayBuffer`].
775    ///
776    ///
777    /// # Returns
778    ///
779    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsArrayBuffer`]
780    /// structure is returned. If the memory is not enough, nullptr is returned.
781    /// [`OH_UdsArrayBuffer`]
782    /// Available since API-level: 13
783    #[cfg(feature = "api-13")]
784    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
785    pub fn OH_UdsArrayBuffer_Create() -> *mut OH_UdsArrayBuffer;
786    /// Destroy a pointer that points to the [`OH_UdsArrayBuffer`] instance.
787    ///
788    /// # Arguments
789    ///
790    /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
791    ///
792    /// # Returns
793    ///
794    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
795    /// [`UDMF_E_OK`] success.
796    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
797    /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
798    ///
799    /// Available since API-level: 13
800    #[cfg(feature = "api-13")]
801    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
802    pub fn OH_UdsArrayBuffer_Destroy(buffer: *mut OH_UdsArrayBuffer) -> ::core::ffi::c_int;
803    /// Set array buffer data to the [`OH_UdsArrayBuffer`].
804    ///
805    /// # Arguments
806    ///
807    /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
808    ///
809    /// * `data` - Represents the array buffer data.
810    ///
811    /// * `len` - Represents the length of data param.
812    ///
813    /// # Returns
814    ///
815    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
816    /// [`UDMF_E_OK`] success.
817    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
818    /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
819    ///
820    /// Available since API-level: 13
821    #[cfg(feature = "api-13")]
822    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
823    pub fn OH_UdsArrayBuffer_SetData(
824        buffer: *mut OH_UdsArrayBuffer,
825        data: *mut ::core::ffi::c_uchar,
826        len: ::core::ffi::c_uint,
827    ) -> ::core::ffi::c_int;
828    /// Get array buffer data from the [`OH_UdsArrayBuffer`].
829    ///
830    /// # Arguments
831    ///
832    /// * `buffer` - Represents a pointer to an instance of [`OH_UdsArrayBuffer`].
833    ///
834    /// * `data` - Represents a pointer to array buffer data that is a output param.
835    ///
836    /// * `len` - Represents the array buffer data length that is a output param.
837    ///
838    /// # Returns
839    ///
840    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
841    /// [`UDMF_E_OK`] success.
842    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
843    /// [`OH_UdsArrayBuffer`] Udmf_ErrCode
844    ///
845    /// Available since API-level: 13
846    #[cfg(feature = "api-13")]
847    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
848    pub fn OH_UdsArrayBuffer_GetData(
849        buffer: *mut OH_UdsArrayBuffer,
850        data: *mut *mut ::core::ffi::c_uchar,
851        len: *mut ::core::ffi::c_uint,
852    ) -> ::core::ffi::c_int;
853    /// Creation a pointer to the instance of the [`OH_UdsContentForm`].
854    ///
855    ///
856    /// # Returns
857    ///
858    /// * If the operation is successful, a pointer to the instance of the [`OH_UdsContentForm`]
859    /// structure is returned. If the operation is failed, nullptr is returned.
860    /// [`OH_UdsContentForm`]
861    /// Available since API-level: 14
862    #[cfg(feature = "api-14")]
863    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
864    pub fn OH_UdsContentForm_Create() -> *mut OH_UdsContentForm;
865    /// Destroy a pointer that points to the [`OH_UdsContentForm`] instance.
866    ///
867    /// # Arguments
868    ///
869    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
870    /// [`OH_UdsContentForm`]
871    /// Available since API-level: 14
872    #[cfg(feature = "api-14")]
873    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
874    pub fn OH_UdsContentForm_Destroy(pThis: *mut OH_UdsContentForm);
875    /// Get type id from the [`OH_UdsContentForm`].
876    ///
877    /// # Arguments
878    ///
879    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
880    ///
881    /// # Returns
882    ///
883    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
884    /// [`OH_UdsContentForm`]
885    /// Available since API-level: 14
886    #[cfg(feature = "api-14")]
887    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
888    pub fn OH_UdsContentForm_GetType(pThis: *mut OH_UdsContentForm) -> *const ::core::ffi::c_char;
889    /// Get thumb data from the [`OH_UdsContentForm`].
890    ///
891    /// # Arguments
892    ///
893    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
894    ///
895    /// * `thumbData` - Represents a pointer to thumb data that is a output param.
896    ///
897    /// * `len` - Represents the thumb data length that is a output param.
898    ///
899    /// # Returns
900    ///
901    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
902    /// [`UDMF_E_OK`] success.
903    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
904    /// [`UDMF_ERR`] Internal data error.
905    /// [`OH_UdsContentForm`] Udmf_ErrCode
906    ///
907    /// Available since API-level: 14
908    #[cfg(feature = "api-14")]
909    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
910    pub fn OH_UdsContentForm_GetThumbData(
911        pThis: *mut OH_UdsContentForm,
912        thumbData: *mut *mut ::core::ffi::c_uchar,
913        len: *mut ::core::ffi::c_uint,
914    ) -> ::core::ffi::c_int;
915    /// Get description from the [`OH_UdsContentForm`].
916    ///
917    /// # Arguments
918    ///
919    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
920    ///
921    /// # Returns
922    ///
923    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
924    /// [`OH_UdsContentForm`]
925    /// Available since API-level: 14
926    #[cfg(feature = "api-14")]
927    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
928    pub fn OH_UdsContentForm_GetDescription(
929        pThis: *mut OH_UdsContentForm,
930    ) -> *const ::core::ffi::c_char;
931    /// Get title from the [`OH_UdsContentForm`].
932    ///
933    /// # Arguments
934    ///
935    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
936    ///
937    /// # Returns
938    ///
939    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
940    /// [`OH_UdsContentForm`]
941    /// Available since API-level: 14
942    #[cfg(feature = "api-14")]
943    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
944    pub fn OH_UdsContentForm_GetTitle(pThis: *mut OH_UdsContentForm) -> *const ::core::ffi::c_char;
945    /// Get thumb data from the [`OH_UdsContentForm`].
946    ///
947    /// # Arguments
948    ///
949    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
950    ///
951    /// * `appIcon` - Represents a pointer to app icon that is a output param.
952    ///
953    /// * `len` - Represents the app icon length that is a output param.
954    ///
955    /// # Returns
956    ///
957    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
958    /// [`UDMF_E_OK`] success.
959    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
960    /// [`UDMF_ERR`] Internal data error.
961    /// [`OH_UdsContentForm`] Udmf_ErrCode
962    ///
963    /// Available since API-level: 14
964    #[cfg(feature = "api-14")]
965    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
966    pub fn OH_UdsContentForm_GetAppIcon(
967        pThis: *mut OH_UdsContentForm,
968        appIcon: *mut *mut ::core::ffi::c_uchar,
969        len: *mut ::core::ffi::c_uint,
970    ) -> ::core::ffi::c_int;
971    /// Get app name from the [`OH_UdsContentForm`].
972    ///
973    /// # Arguments
974    ///
975    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
976    ///
977    /// # Returns
978    ///
979    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
980    /// [`OH_UdsContentForm`]
981    /// Available since API-level: 14
982    #[cfg(feature = "api-14")]
983    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
984    pub fn OH_UdsContentForm_GetAppName(
985        pThis: *mut OH_UdsContentForm,
986    ) -> *const ::core::ffi::c_char;
987    /// Get link url from the [`OH_UdsContentForm`].
988    ///
989    /// # Arguments
990    ///
991    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
992    ///
993    /// # Returns
994    ///
995    /// * Returns a pointer of the value string when input args normally, otherwise return nullptr.
996    /// [`OH_UdsContentForm`]
997    /// Available since API-level: 14
998    #[cfg(feature = "api-14")]
999    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1000    pub fn OH_UdsContentForm_GetLinkUri(
1001        pThis: *mut OH_UdsContentForm,
1002    ) -> *const ::core::ffi::c_char;
1003    /// Set thumb data to the [`OH_UdsContentForm`].
1004    ///
1005    /// # Arguments
1006    ///
1007    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1008    ///
1009    /// * `thumbData` - Represents the thumb data.
1010    ///
1011    /// * `len` - Represents the length of thumb data param.
1012    ///
1013    /// # Returns
1014    ///
1015    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1016    /// [`UDMF_E_OK`] success.
1017    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1018    /// [`OH_UdsContentForm`] Udmf_ErrCode
1019    ///
1020    /// Available since API-level: 14
1021    #[cfg(feature = "api-14")]
1022    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1023    pub fn OH_UdsContentForm_SetThumbData(
1024        pThis: *mut OH_UdsContentForm,
1025        thumbData: *const ::core::ffi::c_uchar,
1026        len: ::core::ffi::c_uint,
1027    ) -> ::core::ffi::c_int;
1028    /// Set description to the [`OH_UdsContentForm`].
1029    ///
1030    /// # Arguments
1031    ///
1032    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1033    ///
1034    /// * `description` - Represents a description string.
1035    ///
1036    /// # Returns
1037    ///
1038    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1039    /// [`UDMF_E_OK`] success.
1040    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1041    /// [`OH_UdsContentForm`] Udmf_ErrCode
1042    ///
1043    /// Available since API-level: 14
1044    #[cfg(feature = "api-14")]
1045    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1046    pub fn OH_UdsContentForm_SetDescription(
1047        pThis: *mut OH_UdsContentForm,
1048        description: *const ::core::ffi::c_char,
1049    ) -> ::core::ffi::c_int;
1050    /// Set title to the [`OH_UdsContentForm`].
1051    ///
1052    /// # Arguments
1053    ///
1054    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1055    ///
1056    /// * `title` - Represents a title string.
1057    ///
1058    /// # Returns
1059    ///
1060    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1061    /// [`UDMF_E_OK`] success.
1062    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1063    /// [`OH_UdsContentForm`] Udmf_ErrCode
1064    ///
1065    /// Available since API-level: 14
1066    #[cfg(feature = "api-14")]
1067    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1068    pub fn OH_UdsContentForm_SetTitle(
1069        pThis: *mut OH_UdsContentForm,
1070        title: *const ::core::ffi::c_char,
1071    ) -> ::core::ffi::c_int;
1072    /// Set thumb data to the [`OH_UdsContentForm`].
1073    ///
1074    /// # Arguments
1075    ///
1076    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1077    ///
1078    /// * `appIcon` - Represents the app icon.
1079    ///
1080    /// * `len` - Represents the length of app icon param.
1081    ///
1082    /// # Returns
1083    ///
1084    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1085    /// [`UDMF_E_OK`] success.
1086    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1087    /// [`OH_UdsContentForm`] Udmf_ErrCode
1088    ///
1089    /// Available since API-level: 14
1090    #[cfg(feature = "api-14")]
1091    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1092    pub fn OH_UdsContentForm_SetAppIcon(
1093        pThis: *mut OH_UdsContentForm,
1094        appIcon: *const ::core::ffi::c_uchar,
1095        len: ::core::ffi::c_uint,
1096    ) -> ::core::ffi::c_int;
1097    /// Set app name to the [`OH_UdsContentForm`].
1098    ///
1099    /// # Arguments
1100    ///
1101    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1102    ///
1103    /// * `appName` - Represents a app name string.
1104    ///
1105    /// # Returns
1106    ///
1107    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1108    /// [`UDMF_E_OK`] success.
1109    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1110    /// [`OH_UdsContentForm`] Udmf_ErrCode
1111    ///
1112    /// Available since API-level: 14
1113    #[cfg(feature = "api-14")]
1114    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1115    pub fn OH_UdsContentForm_SetAppName(
1116        pThis: *mut OH_UdsContentForm,
1117        appName: *const ::core::ffi::c_char,
1118    ) -> ::core::ffi::c_int;
1119    /// Set link uri to the [`OH_UdsContentForm`].
1120    ///
1121    /// # Arguments
1122    ///
1123    /// * `pThis` - Represents a pointer to an instance of [`OH_UdsContentForm`].
1124    ///
1125    /// * `linkUri` - Represents a link uri string.
1126    ///
1127    /// # Returns
1128    ///
1129    /// * Returns the status code of the execution. See [`Udmf_ErrCode`].
1130    /// [`UDMF_E_OK`] success.
1131    /// [`UDMF_E_INVALID_PARAM`] The error code for common invalid args.
1132    /// [`OH_UdsContentForm`] Udmf_ErrCode
1133    ///
1134    /// Available since API-level: 14
1135    #[cfg(feature = "api-14")]
1136    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
1137    pub fn OH_UdsContentForm_SetLinkUri(
1138        pThis: *mut OH_UdsContentForm,
1139        linkUri: *const ::core::ffi::c_char,
1140    ) -> ::core::ffi::c_int;
1141}