Mercurial > crates > nonstick
comparison src/libpam/pam_ffi.rs @ 102:94eb11cb1798 default tip
Improve documentation for pam_start.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 24 Jun 2025 18:11:38 -0400 |
parents | 94b51fa4f797 |
children |
comparison
equal
deleted
inserted
replaced
101:94b51fa4f797 | 102:94eb11cb1798 |
---|---|
28 #[repr(C)] | 28 #[repr(C)] |
29 #[derive(Debug, Default)] | 29 #[derive(Debug, Default)] |
30 pub struct Answer { | 30 pub struct Answer { |
31 /// Owned pointer to the data returned in an answer. | 31 /// Owned pointer to the data returned in an answer. |
32 /// For most answers, this will be a [`CHeapString`], | 32 /// For most answers, this will be a [`CHeapString`], |
33 /// but for [`BinaryQAndA`](crate::conv::BinaryQAndA)s (a Linux-PAM extension), | 33 /// but for [`BinaryQAndA`](crate::conv::BinaryQAndA)s |
34 /// this will be a [`CHeapBox`] of | 34 /// (a Linux-PAM extension), this will be a [`CHeapBox`] of |
35 /// [`CBinaryData`](crate::libpam::memory::CBinaryData). | 35 /// [`CBinaryData`](crate::libpam::memory::CBinaryData). |
36 pub data: Option<CHeapBox<c_void>>, | 36 pub data: Option<CHeapBox<c_void>>, |
37 /// Unused. Just here for the padding. | 37 /// Unused. Just here for the padding. |
38 return_code: c_int, | 38 return_code: c_int, |
39 _marker: Immovable, | 39 _marker: Immovable, |