ohos-rdb-sys 0.1.0

Raw bindings to the OpenHarmony relational database (RDB) API
Documentation
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

/// Define the OH_VObject structure type.
///
///
/// Available since API-level: 10
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_VObject {
    /// The id used to uniquely identify the OH_VObject struct.
    pub id: i64,
    /// Convert the int64 input parameter to a value of type [`OH_VObject`].
    ///
    /// # Arguments
    ///
    /// * `valueObject` - Represents a pointer to an [`OH_VObject`] instance.
    ///
    /// * `value` - Represents a pointer to an int64_t input parameter or the array of type int64_t.
    ///
    /// * `count` - If value is a pointer to a single numerical value, count = 1;
    /// if value is a pointer to an array, count is the size of the array.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution.
    /// [`OH_VObject.`]
    /// Available since API-level: 10
    pub putInt64: ::core::option::Option<
        unsafe extern "C" fn(
            valueObject: *mut OH_VObject,
            value: *mut i64,
            count: u32,
        ) -> ::core::ffi::c_int,
    >,
    /// Convert the double input parameter to a value of type [`OH_VObject`].
    ///
    /// # Arguments
    ///
    /// * `valueObject` - Represents a pointer to an [`OH_VObject`] instance.
    ///
    /// * `value` - Represents a pointer to an double input parameter or the array of type double.
    ///
    /// * `count` - If value is a pointer to a single numerical value, count = 1;
    /// if value is a pointer to an array, count is the size of the array.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution.
    /// [`OH_VObject.`]
    /// Available since API-level: 10
    pub putDouble: ::core::option::Option<
        unsafe extern "C" fn(
            valueObject: *mut OH_VObject,
            value: *mut f64,
            count: u32,
        ) -> ::core::ffi::c_int,
    >,
    /// Convert the char input parameter to a value of type [`OH_VObject`].
    ///
    /// # Arguments
    ///
    /// * `valueObject` - Represents a pointer to an [`OH_VObject`] instance.
    ///
    /// * `value` - Indicates the const char * input parameter.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution.
    /// [`OH_VObject.`]
    /// Available since API-level: 10
    pub putText: ::core::option::Option<
        unsafe extern "C" fn(
            valueObject: *mut OH_VObject,
            value: *const ::core::ffi::c_char,
        ) -> ::core::ffi::c_int,
    >,
    /// Convert the char * array input parameter to a value of type [`OH_VObject`].
    ///
    /// # Arguments
    ///
    /// * `valueObject` - Represents a pointer to an [`OH_VObject`] instance.
    ///
    /// * `value` - Indicates the const char * array input parameter.
    ///
    /// * `count` - Indicates the size of the value.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution.
    /// [`OH_VObject.`]
    /// Available since API-level: 10
    pub putTexts: ::core::option::Option<
        unsafe extern "C" fn(
            valueObject: *mut OH_VObject,
            value: *mut *const ::core::ffi::c_char,
            count: u32,
        ) -> ::core::ffi::c_int,
    >,
    /// Destroy the [`OH_VObject`] object and reclaim the memory occupied by the object.
    ///
    /// # Arguments
    ///
    /// * `valueObject` - Represents a pointer to an [`OH_VObject`] instance.
    ///
    /// # Returns
    ///
    /// * Returns the status code of the execution.
    /// [`OH_VObject.`]
    /// Available since API-level: 10
    pub destroy: ::core::option::Option<
        unsafe extern "C" fn(valueObject: *mut OH_VObject) -> ::core::ffi::c_int,
    >,
}