OH_NativeWindow_NativeWindowAbortBuffer

Function OH_NativeWindow_NativeWindowAbortBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowAbortBuffer(
    window: *mut NativeWindow,
    buffer: *mut NativeWindowBuffer,
) -> i32
Available on crate feature native_window only.
Expand description

Returns the OHNativeWindowBuffer to the buffer queue through a OHNativeWindow instance, without filling in any content. The OHNativeWindowBuffer can be used for another request.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • window - Indicates the pointer to a OHNativeWindow instance.

  • buffer - Indicates the pointer to a OHNativeWindowBuffer instance.

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 8

Version: 1.0