ohos-basic-services-kit-sys 0.1.0

Raw bindings to the BasicServicesKit NDK of OpenHarmony
Documentation
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use crate::os_account_common::*;

extern "C" {
    /// Gets the name of the OS account to which the caller process belongs.
    ///
    /// # Arguments
    ///
    /// * `buffer` - The name character array which should have space for the name and the terminating character ('
    /// * `buffer_size` - The size of the name character array.
    ///
    /// # Returns
    ///
    /// * [`OS_ACCOUNT_ERR_OK`] Indicates successful;<br>
    /// [`OS_ACCOUNT_ERR_INTERNAL_ERROR`] Indicates the internal error.<br>
    /// [`OS_ACCOUNT_ERR_INVALID_PARAMETER`] Indicates the <i>buffer</i> is NULL pointer or the size of the name,
    /// including the terminating character ('is larger than <i>buffer_size</i>;
    ///
    /// Required System Capabilities: SystemCapability.Account.OsAccount
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub fn OH_OsAccount_GetName(
        buffer: *mut ::core::ffi::c_char,
        buffer_size: usize,
    ) -> OsAccount_ErrCode;
}