added type alias docs

This commit is contained in:
David Cole 2021-03-09 21:01:07 +13:00
parent d964164ca7
commit 59b694a4bd

View File

@ -13,9 +13,13 @@ use crate::{
functions::{build_id, c_str},
};
/// A Zend module entry. Alias.
pub type ModuleEntry = zend_module_entry;
/// A Zend function entry. Alias.
pub type FunctionEntry = zend_function_entry;
/// A function to be called when the extension is starting up or shutting down.
pub type StartupShutdownFunc = extern "C" fn(type_: c_int, module_number: c_int) -> zend_result;
/// A function to be called when `phpinfo();` is called.
pub type InfoFunc = extern "C" fn(zend_module: *mut ModuleEntry);
/// Builds a Zend extension. Must be called from within an external function called `get_module`,