comparison src/libpam/pam_ffi.rs @ 108:e97534be35e3

Make some proc macros for doing cfg-like stuff for PAM impls.
author Paul Fisher <paul@pfish.zone>
date Sat, 28 Jun 2025 00:34:45 -0400
parents dfcd96a74ac4
children 178310336596
comparison
equal deleted inserted replaced
107:49c6633f6fd2 108:e97534be35e3
101 } else { 101 } else {
102 unsafe { CStr::from_ptr(strerror) }.to_str().ok() 102 unsafe { CStr::from_ptr(strerror) }.to_str().ok()
103 } 103 }
104 } 104 }
105 105
106 pub use libpam_sys::*;
107
106 type pam_handle = LibPamHandle; 108 type pam_handle = LibPamHandle;
107 type pam_conv = LibPamConversation<'static>; 109 type pam_conv = LibPamConversation<'static>;
108 110
109 include!(concat!(env!("OUT_DIR"), "/bindings.rs")); 111 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));