-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vsync: Update bindings to OH 5.0 release.
Signed-off-by: Jonathan Schwender <[email protected]> Signed-off-by: Jonathan Schwender <[email protected]>
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#![allow(non_upper_case_globals)] | ||
#![allow(non_camel_case_types)] | ||
#![allow(non_snake_case)] | ||
|
||
use crate::vsync::{OH_NativeVSync, OH_NativeVSync_FrameCallback}; | ||
|
||
extern "C" { | ||
/** @brief Request next vsync with callback. | ||
If this function is called multiple times in one vsync period, all these callbacks and dataset will be called. | ||
@syscap SystemCapability.Graphic.Graphic2D.NativeVsync | ||
@param nativeVsync Indicates the pointer to a NativeVsync. | ||
@param callback Indicates the OH_NativeVSync_FrameCallback which will be called when next vsync coming. | ||
@param data Indicates data whick will be used in callback. | ||
@return {@link NATIVE_ERROR_OK} 0 - Success. | ||
{@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - the parameter nativeVsync is NULL or callback is NULL. | ||
{@link NATIVE_ERROR_BINDER_ERROR} 50401000 - ipc send failed. | ||
@since 12 | ||
@version 1.0*/ | ||
pub fn OH_NativeVSync_RequestFrameWithMultiCallback( | ||
nativeVsync: *mut OH_NativeVSync, | ||
callback: OH_NativeVSync_FrameCallback, | ||
data: *mut ::core::ffi::c_void, | ||
) -> ::core::ffi::c_int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters