Macro pamsm::pam_module
source · [−]macro_rules! pam_module {
($pamsm_ty:ty) => { ... };
}
Expand description
Define entrypoints for the PAM module.
This macro must be called exactly once in a PAM module. It then exports all the pam_sm_* symbols.
The argument to the macro is a type implementing the
PamServiceModule
trait.
Example
ⓘ
// lib.rs
#[macro_use] extern crate pamsm;
pam_module!(MyPamService);