Type Alias ext_php_rs::zend::IniEntryDef

source ·
pub type IniEntryDef = zend_ini_entry_def;
Expand description

A Zend ini entry definition.

To register ini definitions for extensions, the IniEntryDef builder should be used. Ini entries should be registered in your module’s startup_function via IniEntryDef::register(Vec<IniEntryDef>).

Aliased Type§

struct IniEntryDef {
    pub name: *const i8,
    pub on_modify: Option<unsafe extern "C" fn(_: *mut _zend_ini_entry, _: *mut _zend_string, _: *mut c_void, _: *mut c_void, _: *mut c_void, _: i32) -> i32>,
    pub mh_arg1: *mut c_void,
    pub mh_arg2: *mut c_void,
    pub mh_arg3: *mut c_void,
    pub value: *const i8,
    pub displayer: Option<unsafe extern "C" fn(_: *mut _zend_ini_entry, _: i32)>,
    pub value_length: u32,
    pub name_length: u16,
    pub modifiable: u8,
}

Fields§

§name: *const i8§on_modify: Option<unsafe extern "C" fn(_: *mut _zend_ini_entry, _: *mut _zend_string, _: *mut c_void, _: *mut c_void, _: *mut c_void, _: i32) -> i32>§mh_arg1: *mut c_void§mh_arg2: *mut c_void§mh_arg3: *mut c_void§value: *const i8§displayer: Option<unsafe extern "C" fn(_: *mut _zend_ini_entry, _: i32)>§value_length: u32§name_length: u16§modifiable: u8

Implementations§

source§

impl IniEntryDef

source

pub fn new( name: String, default_value: String, permission: IniEntryPermission ) -> Self

Returns an empty ini entry, signifying the end of a ini list.

source

pub fn end() -> Self

Returns an empty ini entry def, signifying the end of a ini list.

source

pub fn into_raw(self) -> *mut Self

Converts the ini entry into a raw and pointer, releasing it to the C world.

source

pub fn register(entries: Vec<Self>, module_number: i32)