diff libpam-sys/src/lib.rs @ 125:2b255c92417b

Introduce base PAM functions; use the real X/SSO PAM header for tests.
author Paul Fisher <paul@pfish.zone>
date Mon, 30 Jun 2025 17:47:32 -0400
parents 39760dfc9b3b
children c77846f3a979
line wrap: on
line diff
--- a/libpam-sys/src/lib.rs	Mon Jun 30 04:54:38 2025 -0400
+++ b/libpam-sys/src/lib.rs	Mon Jun 30 17:47:32 2025 -0400
@@ -6,11 +6,6 @@
 
 use libpam_sys_impls::{__pam_impl_enum__, __pam_impl_name__};
 
-mod constants;
-mod functions;
-pub mod helpers;
-mod structs;
-
 /// A `cfg`-like attribute macro for code specific to one PAM implementation.
 ///
 /// Different versions of PAM export different functions and have some
@@ -48,9 +43,17 @@
 #[doc(inline)]
 pub use libpam_sys_impls::cfg_pam_impl;
 
+mod constants;
+// We get `funcs` from different places depending upon the PAM implementation.
+// This is because
+#[path = "funcs/xsso_base.rs"]
+mod funcs;
+pub mod helpers;
+mod structs;
+
+#[doc(inline)]
+pub use crate::{constants::*, funcs::*, structs::*};
+
 // Looking for the actual code defining this enum?
 // It's in the build.rs file for libpam_sys_impls.
 __pam_impl_enum__!(#[non_exhaustive]);
-
-#[doc(inline)]
-pub use crate::{constants::*, structs::*};