ohos-pasteboard-sys 0.1.3

Raw Bindings to the clipboard / pasteboard on OpenHarmony
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use ohos_sys_opaque_types::OH_UdmfData;

#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
impl Pasteboard_NotifyType {
    /// Change of the Pasteboard data in the local device.
    pub const LOCAL_DATA_CHANGE: Pasteboard_NotifyType = Pasteboard_NotifyType(1);
    /// Change of the Pasteboard data in the remote devices.
    pub const REMOTE_DATA_CHANGE: Pasteboard_NotifyType = Pasteboard_NotifyType(2);
}
#[repr(transparent)]
/// Enumerates the types of data changes that can be observed.
///
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Pasteboard_NotifyType(pub ::core::ffi::c_uint);
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
impl Pasteboard_FileConflictOptions {
    /// Overwrite when destUir has file with same name.
    pub const PASTEBOARD_OVERWRITE: Pasteboard_FileConflictOptions =
        Pasteboard_FileConflictOptions(0);
    /// Skip when destUir has file with same name.
    pub const PASTEBOARD_SKIP: Pasteboard_FileConflictOptions = Pasteboard_FileConflictOptions(1);
}
#[repr(transparent)]
/// Enumerates the types of file confilct options when getting data from the Pastedboard.
///
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Pasteboard_FileConflictOptions(pub ::core::ffi::c_uint);
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
impl Pasteboard_ProgressIndicator {
    /// Getting data without system default progress indicator.
    pub const PASTEBOARD_NONE: Pasteboard_ProgressIndicator = Pasteboard_ProgressIndicator(0);
    /// Getting data with system default progress indicator.
    pub const PASTEBOARD_DEFAULT: Pasteboard_ProgressIndicator = Pasteboard_ProgressIndicator(1);
}
#[repr(transparent)]
/// Enumerates the types of progress indicator when getting data from the Pastedboard.
///
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Pasteboard_ProgressIndicator(pub ::core::ffi::c_uint);
/// Represents the Pasteboard progress information.
///
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[repr(C)]
pub struct Pasteboard_ProgressInfo {
    _unused: [u8; 0],
}
/// Defines the callback function used to return the progress information when getting PasteData.
///
/// # Arguments
///
/// * `progressInfo` - The progress information notified to Application.
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub type OH_Pasteboard_ProgressListener =
    ::core::option::Option<unsafe extern "C" fn(progressInfo: *mut Pasteboard_ProgressInfo)>;
/// Represents the pasteboard get data parameters when getting data from Pasteboard.
///
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
#[repr(C)]
pub struct Pasteboard_GetDataParams {
    _unused: [u8; 0],
}
/// Defines the callback function used to return the Pasteboard data changed.
///
/// # Arguments
///
/// * `context` - The context set by [`OH_PasteboardObserver_SetData`] function.
///
/// * `type` - The types of data changes. For details, see [`Pasteboard_NotifyType`].
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
pub type Pasteboard_Notify = ::core::option::Option<
    unsafe extern "C" fn(context: *mut ::core::ffi::c_void, type_: Pasteboard_NotifyType),
>;
/// Defines the callback function used free the context.
/// # Arguments
///
/// * `context` - Pointer to the context which is to be free.
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
pub type Pasteboard_Finalize =
    ::core::option::Option<unsafe extern "C" fn(context: *mut ::core::ffi::c_void)>;
/// Defines the Pasteboard subscriber information
///
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
#[repr(C)]
pub struct OH_PasteboardObserver {
    _unused: [u8; 0],
}
/// Represents the Pasteboard information.
///
///
/// Available since API-level: 13
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
#[repr(C)]
pub struct OH_Pasteboard {
    _unused: [u8; 0],
}
extern "C" {
    /// Creates a [`OH_PasteboardObserver`] instance.
    ///
    ///
    /// # Returns
    ///
    /// * Returns the pointer to the [`OH_PasteboardObserver`] instance created if the operation is successful.
    /// Returns nullptr if the operation is failed.
    /// [`OH_PasteboardObserver.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_PasteboardObserver_Create() -> *mut OH_PasteboardObserver;
    /// Destroy a [`OH_PasteboardObserver`] instance.
    ///
    /// # Arguments
    ///
    /// * `observer` - Pointer to the [`OH_PasteboardObserver`] instance to destroy.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_PasteboardObserver`] PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_PasteboardObserver_Destroy(
        observer: *mut OH_PasteboardObserver,
    ) -> ::core::ffi::c_int;
    /// Sets a callback function to return the Pasteboard data changed.
    ///
    /// # Arguments
    ///
    /// * `observer` - Pointer to the [`OH_PasteboardObserver`] instance.
    ///
    /// * `context` - Pointer to the context set, which is the first parameter in Pasteboard_Notify.
    ///
    /// * `callback` - Callback to set. For details, see [`Pasteboard_Notify`].
    ///
    /// * `finalize` - Optional callback that can free context when destroy observer.
    /// For details, see [`Pasteboard_Finalize`].
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_PasteboardObserver`] Pasteboard_Notify PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_PasteboardObserver_SetData(
        observer: *mut OH_PasteboardObserver,
        context: *mut ::core::ffi::c_void,
        callback: Pasteboard_Notify,
        finalize: Pasteboard_Finalize,
    ) -> ::core::ffi::c_int;
    /// Creates a [`OH_Pasteboard`] instance.
    ///
    ///
    /// # Returns
    ///
    /// * Returns the pointer to the [`OH_Pasteboard`] instance created if the operation is successful.
    /// Returns nullptr if the memory is not enough.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_Create() -> *mut OH_Pasteboard;
    /// Destroy a [`OH_Pasteboard`] instance.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance to destroy.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_Destroy(pasteboard: *mut OH_Pasteboard);
    /// Subscribes to the Pasteboard data change.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `type` - Event type to subscribe to report the pasteboard data change.
    /// For details, see [`Pasteboard_NotifyType`].
    ///
    /// * `observer` - - Pointer to the observer information, which specifies the callback used to
    /// reporting the pasteboard data change. For details, see [`OH_PasteboardObserver`].
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_Pasteboard`] OH_PasteboardObserver Pasteboard_NotifyType PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_Subscribe(
        pasteboard: *mut OH_Pasteboard,
        type_: ::core::ffi::c_int,
        observer: *const OH_PasteboardObserver,
    ) -> ::core::ffi::c_int;
    /// Unsubscribes from the Pasteboard data change.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `type` - Event type to subscribe to report the pasteboard data change.
    /// For details, see [`Pasteboard_NotifyType`].
    ///
    /// * `observer` - - Pointer to the observer information, which specifies the callback used to
    /// reporting the pasteboard data change. For details, see [`OH_PasteboardObserver`].
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_Pasteboard`] OH_PasteboardObserver Pasteboard_NotifyType PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_Unsubscribe(
        pasteboard: *mut OH_Pasteboard,
        type_: ::core::ffi::c_int,
        observer: *const OH_PasteboardObserver,
    ) -> ::core::ffi::c_int;
    /// Checks whether the Pasteboard data is from a remote device.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// # Returns
    ///
    /// * Returns a boolean value, which indicates whether the the data is from a remote device.
    /// The value `false` means Pasteboard data is not from a remote device.
    /// The value `true` means the opposite.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_IsRemoteData(pasteboard: *mut OH_Pasteboard) -> bool;
    /// Obtains the source of Pasteboard data.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `source` - Pointer to the source data.
    ///
    /// * `len` - Length of the source data.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_Pasteboard`] PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_GetDataSource(
        pasteboard: *mut OH_Pasteboard,
        source: *mut ::core::ffi::c_char,
        len: ::core::ffi::c_uint,
    ) -> ::core::ffi::c_int;
    /// Checks whether the Pasteboard has the specified type of data.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `type` - Poniter to the type of data to check.
    ///
    /// # Returns
    ///
    /// * Returns a boolean value, which indicates whether the Pasteboard has the specified type of data.
    /// The value `true` means the Pasteboard has the specified type of data.
    /// The value `false` means the opposite.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_HasType(
        pasteboard: *mut OH_Pasteboard,
        type_: *const ::core::ffi::c_char,
    ) -> bool;
    /// Checks whether there is data in the Pasteboard.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// # Returns
    ///
    /// * Returns a boolean value, which indicates whether there is data in the Pasteboard.
    /// The value `true` means there is data in Pasteboard.
    /// The value `false` means the opposite.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_HasData(pasteboard: *mut OH_Pasteboard) -> bool;
    /// Obtains data from the Pasteboard.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `status` - The status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    ///
    /// # Returns
    ///
    /// * Returns the pointer to the [`OH_UdmfData`] instance.
    /// [`OH_Pasteboard`] OH_UdmfData PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_GetData(
        pasteboard: *mut OH_Pasteboard,
        status: *mut ::core::ffi::c_int,
    ) -> *mut OH_UdmfData;
    /// Writes data to the Pasteboard.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `data` - Pointer to the [`OH_UdmfData`] instance.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_Pasteboard`] OH_UdmfData PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_SetData(
        pasteboard: *mut OH_Pasteboard,
        data: *mut OH_UdmfData,
    ) -> ::core::ffi::c_int;
    /// Clears the data in the Pastedboard.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution. For details, see [`PASTEBOARD_ErrCode`].
    /// Returns [`ERR_OK`] if the operation is successful.
    /// Returns [`ERR_INVALID_PARAMETER`] if invalid args are detected.
    /// [`OH_Pasteboard`] PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub fn OH_Pasteboard_ClearData(pasteboard: *mut OH_Pasteboard) -> ::core::ffi::c_int;
    /// Obtains all MIME types of Pasteboard data.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `count` - Poniter to the count of MIME types.
    ///
    /// # Returns
    ///
    /// * Returns char array of MIME types in the Pasteboard.
    /// Returns nullptr if the operation is failed.
    /// [`OH_Pasteboard.`]
    /// Available since API-level: 14
    #[cfg(feature = "api-14")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
    pub fn OH_Pasteboard_GetMimeTypes(
        pasteboard: *mut OH_Pasteboard,
        count: *mut ::core::ffi::c_uint,
    ) -> *mut *mut ::core::ffi::c_char;
    /// Gets the number of Pasteboard data changes.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// # Returns
    ///
    /// * the number of Pasteboard data changes.
    /// Returns 0 means initial value or invalid value.In this case, no action is required.
    ///
    /// Available since API-level: 18
    #[cfg(feature = "api-18")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
    pub fn OH_Pasteboard_GetChangeCount(pasteboard: *mut OH_Pasteboard) -> u32;
    /// Create a pointer to the instance of the [`Pasteboard_GetDataParams`].
    ///
    ///
    /// # Returns
    ///
    /// * If the operation is successful, a pointer to the instance of the [`Pasteboard_GetDataParams`]
    /// structure is returned. If the operation is failed, nullptr is returned.
    /// [`Pasteboard_GetDataParams.`]
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_Create() -> *mut Pasteboard_GetDataParams;
    /// Destroy a pointer that points to an instance of [`Pasteboard_GetDataParams`].
    ///
    /// # Arguments
    ///
    /// * `params` - Represents a pointer to an instance of [`Pasteboard_GetDataParams`].
    /// [`Pasteboard_GetDataParams.`]
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_Destroy(params: *mut Pasteboard_GetDataParams);
    /// Set the progress indicator to the [`Pasteboard_GetDataParams`].
    ///
    /// # Arguments
    ///
    /// * `params` - Represents a pointer to an instance of [`Pasteboard_GetDataParams`].
    ///
    /// * `progressIndicator` - Represents to the progress indicator.
    /// [`Pasteboard_GetDataParams`] Pasteboard_ProgressIndicator.
    ///
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_SetProgressIndicator(
        params: *mut Pasteboard_GetDataParams,
        progressIndicator: Pasteboard_ProgressIndicator,
    );
    /// Set the destination uri to the [`Pasteboard_GetDataParams`].
    ///
    /// # Arguments
    ///
    /// * `params` - Represents a pointer to an instance of [`Pasteboard_GetDataParams`].
    ///
    /// * `destUri` - Pointer to a destination uri.
    ///
    /// * `destUriLen` - Indicates the length of destination uri.
    /// [`Pasteboard_GetDataParams.`]
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_SetDestUri(
        params: *mut Pasteboard_GetDataParams,
        destUri: *const ::core::ffi::c_char,
        destUriLen: u32,
    );
    /// Set the file conflict options to the [`Pasteboard_GetDataParams`].
    ///
    /// # Arguments
    ///
    /// * `params` - Represents a pointer to an instance of [`Pasteboard_GetDataParams`].
    ///
    /// * `option` - Represents to the file conflict options.
    /// [`Pasteboard_GetDataParams`] Pasteboard_FileConflictOptions.
    ///
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_SetFileConflictOptions(
        params: *mut Pasteboard_GetDataParams,
        option: Pasteboard_FileConflictOptions,
    );
    /// Set the progress indicator to the [`Pasteboard_GetDataParams`].
    ///
    /// # Arguments
    ///
    /// * `params` - Represents a pointer to an instance of [`Pasteboard_GetDataParams`].
    ///
    /// * `listener` - Represents to the data progress listener.
    /// [`Pasteboard_GetDataParams`] OH_Pasteboard_ProgressListener.
    ///
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataParams_SetProgressListener(
        params: *mut Pasteboard_GetDataParams,
        listener: OH_Pasteboard_ProgressListener,
    );
    /// Get the progress from the [`Pasteboard_ProgressInfo`].
    ///
    /// # Arguments
    ///
    /// * `progressInfo` - Represents a pointer to an instance of [`Pasteboard_ProgressInfo`].
    ///
    /// # Returns
    ///
    /// * Returns the progress.
    /// [`Pasteboard_ProgressInfo.`]
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_ProgressInfo_GetProgress(
        progressInfo: *mut Pasteboard_ProgressInfo,
    ) -> ::core::ffi::c_int;
    /// Defines the cancel function used to cancel the progress when getting PasteData.
    ///
    /// # Arguments
    ///
    /// * `params` - Pointer to indicates the [`Pasteboard_GetDataParams`].
    /// [`Pasteboard_GetDataParams.`]
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_ProgressCancel(params: *mut Pasteboard_GetDataParams);
    /// Obtains data from the Pasteboard with system progress indicator.
    ///
    /// ohos.permission.READ_PASTEBOARD
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `params` - Pointer to indicates the [`OH_Pasteboard_GetDataParams`].
    ///
    /// * `status` - The status code of the execution. For details, see [`PASTEBOARD_Errcode`].
    ///
    /// # Returns
    ///
    /// * Returns the pointer to the [`OH_PasteData`] instance.
    /// [`OH_Pasteboard`] OH_PasteData PASTEBOARD_ErrCode.
    ///
    /// Available since API-level: 15
    #[cfg(feature = "api-15")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
    pub fn OH_Pasteboard_GetDataWithProgress(
        pasteboard: *mut OH_Pasteboard,
        params: *mut Pasteboard_GetDataParams,
        status: *mut ::core::ffi::c_int,
    ) -> *mut OH_UdmfData;
    /// Notifies the system pasteboard to synchronize all time-lapse paste data from application.
    ///
    /// # Arguments
    ///
    /// * `pasteboard` - Pointer to the [`OH_Pasteboard`] instance.
    ///
    /// * `callback` - Indicates the pointer to the callback that is called after the synchronize is finished.
    ///
    /// Available since API-level: 21
    #[cfg(feature = "api-21")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-21")))]
    pub fn OH_Pasteboard_SyncDelayedDataAsync(
        pasteboard: *mut OH_Pasteboard,
        callback: ::core::option::Option<unsafe extern "C" fn(errorCode: ::core::ffi::c_int)>,
    );
}