[][src]Macro pamsm::pam_module

macro_rules! pam_module {
    ($pamsm_ty:ty) => { ... };
}

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

This example is not tested
// lib.rs
#[macro_use] extern crate pamsm;

pam_module!(MyPamService);