ohos-media-sys 0.1.0

Raw Bindings to the media framework on OpenHarmony
Documentation
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;

impl OH_AVSCREEN_CAPTURE_ErrCode {
    /// basic error mask for screen recording.
    pub const AV_SCREEN_CAPTURE_ERR_BASE: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(0);
    /// the operation completed successfully.
    pub const AV_SCREEN_CAPTURE_ERR_OK: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(0);
    /// no memory.
    pub const AV_SCREEN_CAPTURE_ERR_NO_MEMORY: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(1);
    /// operation not be permitted.
    pub const AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(2);
    /// invalid argument.
    pub const AV_SCREEN_CAPTURE_ERR_INVALID_VAL: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(3);
    /// IO error.
    pub const AV_SCREEN_CAPTURE_ERR_IO: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(4);
    /// network timeout.
    pub const AV_SCREEN_CAPTURE_ERR_TIMEOUT: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(5);
    /// unknown error.
    pub const AV_SCREEN_CAPTURE_ERR_UNKNOWN: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(6);
    /// media service died.
    pub const AV_SCREEN_CAPTURE_ERR_SERVICE_DIED: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(7);
    /// the state is not support this operation.
    pub const AV_SCREEN_CAPTURE_ERR_INVALID_STATE: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(8);
    /// unsupport interface.
    pub const AV_SCREEN_CAPTURE_ERR_UNSUPPORT: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(9);
    /// extend err start.
    pub const AV_SCREEN_CAPTURE_ERR_EXTEND_START: OH_AVSCREEN_CAPTURE_ErrCode =
        OH_AVSCREEN_CAPTURE_ErrCode(100);
}
#[repr(transparent)]
/// Screen capture error code
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
///
/// Available since API-level: 10
///
/// Version: 1.0
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVSCREEN_CAPTURE_ErrCode(pub ::core::ffi::c_uint);