entrance_config.h File Reference

Struct Definitions and shared function declarations. More...


Data Structures

struct  _Entrance_Config
 This contains all of the configuration options that the system can set. More...

Defines

#define ENTRANCE_USE_CRYPT   0
#define ENTRANCE_USE_PAM   1
#define ENTRANCE_USE_SHADOW   2
#define ENTRANCE_AUTOLOGIN_NONE   0
#define ENTRANCE_AUTOLOGIN_DEFAULT   1
#define ENTRANCE_AUTOLOGIN_THEME   2
#define ENTRANCE_PRESEL_NONE   0
#define ENTRANCE_PRESEL_PREV   1

Typedefs

typedef struct _Entrance_Config Entrance_Config

Functions

Entrance_Configentrance_config_load (char *file)
 entrance_config_parse parse the config file named
void entrance_config_print (Entrance_Config *e)
void entrance_config_free (Entrance_Config *e)
 entrance_config_free Free up an Entrance_Config struct
void entrance_config_prepend_recent_user (Entrance_Config *e, char *str)
void entrance_config_user_list_save (Entrance_Config *e, const char *file)
 entrance_config_user_list_write : Write out the possibly reordered user list into the config db.
void entrance_config_prevuser_save (char *user, const char *file)
int entrance_config_save (Entrance_Config *e, const char *file)

Detailed Description

Struct Definitions and shared function declarations.


Define Documentation

#define ENTRANCE_AUTOLOGIN_DEFAULT   1

Referenced by entrance_session_run().

#define ENTRANCE_AUTOLOGIN_NONE   0

Referenced by entrance_session_run().

#define ENTRANCE_AUTOLOGIN_THEME   2

Referenced by entrance_session_run().

#define ENTRANCE_PRESEL_NONE   0

#define ENTRANCE_PRESEL_PREV   1

Referenced by entrance_session_run().

#define ENTRANCE_USE_CRYPT   0

Referenced by entrance_auth_cmp().

#define ENTRANCE_USE_PAM   1

#define ENTRANCE_USE_SHADOW   2


Typedef Documentation


Function Documentation

void entrance_config_free ( Entrance_Config e  ) 

Entrance_Config* entrance_config_load ( char *  file  ) 

entrance_config_parse parse the config file named

Parameters:
file the file on disk we should load config opts from
Returns:
a valid Entrance_Config file, or NULL on error

References _entrance_config_defaults_set(), entrance_config_new(), and entrance_config_populate().

Referenced by entrance_session_new().

void entrance_config_prepend_recent_user ( Entrance_Config e,
char *  str 
)

void entrance_config_prevuser_save ( char *  user,
const char *  file 
)

void entrance_config_print ( Entrance_Config e  ) 

int entrance_config_save ( Entrance_Config e,
const char *  file 
)

void entrance_config_user_list_save ( Entrance_Config e,
const char *  file 
)

entrance_config_user_list_write : Write out the possibly reordered user list into the config db.

- a pointer to the config struct we want to write the user list for

References _Entrance_Config::hash, _Entrance_User::icon, _Entrance_Config::keys, _Entrance_User::name, _Entrance_Config::remember, _Entrance_User::session, and _Entrance_Config::users.

Referenced by _entrance_session_user_list_fix().