Go to the source code of this file.
Data Structures | |
struct | pam_netns_shm_t |
shm structure More... | |
Enumerations | |
enum | pam_netns_state_t { INITIAL, BEFORE_COMPLETE, UNSHARE_COMPLETE, AFTER_COMPLETE, SETUP_COMPLETE, SESSION_CLOSED } |
States of pam_netns. More... | |
Functions | |
int | wait_for_state (pam_netns_shm_t *mod_shm, pam_netns_state_t state) |
Wait for a state. | |
int | wait_for_state_inf (pam_netns_shm_t *mod_shm, pam_netns_state_t state) |
Wait for a state (infinite). | |
int | set_state (pam_netns_shm_t *mod_shm, pam_netns_state_t state) |
Set state. |
enum pam_netns_state_t |
States of pam_netns.
This enumeration type specifie different application types.
int set_state | ( | pam_netns_shm_t * | mod_shm, | |
pam_netns_state_t | state | |||
) |
Set state.
This function is called to set a state.
mod_shm | Pointer to shm structure | |
state | State |
0 | State reached | |
<0 | Something went wrong |
int wait_for_state | ( | pam_netns_shm_t * | mod_shm, | |
pam_netns_state_t | state | |||
) |
Wait for a state.
This function blocks until the specified state is reached.
mod_shm | Pointer to shm structure | |
state | State |
0 | State reached | |
<0 | Something went wrong |
int wait_for_state_inf | ( | pam_netns_shm_t * | mod_shm, | |
pam_netns_state_t | state | |||
) |
Wait for a state (infinite).
This function blocks until the specified state is reached.
mod_shm | Pointer to shm structure | |
state | State |
0 | State reached | |
<0 | Something went wrong |