Functions | Variables

src/util.c File Reference

#include "../include/pam_netns.h"
Include dependency graph for util.c:

Functions

int set_state (pam_netns_shm_t *shm, pam_netns_state_t state)
 Set state.
int wait_for_state (pam_netns_shm_t *shm, pam_netns_state_t state)
 Wait for a state.
int wait_for_state_inf (pam_netns_shm_t *shm, pam_netns_state_t state)
 Wait for a state (infinite).

Variables

options_t pam_netns_options

Detailed Description

State control utilities.

Author:
Wilhelm Meier
Julian Thome
Date:
2010-08-25

Implementation of state control utilities.

Author:
Wilhelm Meier
Julian Thome
Date:
2010-08-25

Function Documentation

int set_state ( pam_netns_shm_t mod_shm,
pam_netns_state_t  state 
)

Set state.

This function is called to set a state.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
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.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
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.

Parameters:
mod_shm Pointer to shm structure
state State
Return values:
0 State reached
<0 Something went wrong

Variable Documentation