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§
#[repr(C)]pub 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: u8Implementations§
Source§impl IniEntryDef
 
impl IniEntryDef
Sourcepub fn new(
    name: String,
    default_value: String,
    permission: &IniEntryPermission,
) -> Self
 
pub fn new( name: String, default_value: String, permission: &IniEntryPermission, ) -> Self
Creates a new ini entry definition.
§Panics
- If the name or value cannot be converted to a C string
- If the name or value length is > 65_535
- If the permission bits are invalid