util.c File Reference


Functions

struct passwd * struct_passwd_dup (struct passwd *pwent)
 struct_passwd_dup : duplicate a struct passwd *
void * struct_passwd_free (struct passwd *pwent)
 struct_passwd_free: free a struct passwd *
void entrance_debug (char *msg)
 entrance_debug: print a message if debugging is on
char * theme_normalize_path (char *theme, const char *filename)
char * gstr_is_valid (const char *gstr)
void atog (const char *gstr, int *x, int *y)

Function Documentation

void atog ( const char *  gstr,
int *  x,
int *  y 
)

References gstr_is_valid().

Referenced by main().

void entrance_debug ( char *  msg  ) 

entrance_debug: print a message if debugging is on

Parameters:
msg - the character string you want printed in debug mode

char* gstr_is_valid ( const char *  gstr  ) 

Referenced by atog().

struct passwd* struct_passwd_dup ( struct passwd *  pwent  )  [read]

struct_passwd_dup : duplicate a struct passwd *

Parameters:
pwent - the struct passwd pointer we want to copy
Returns:
a valid pointer to an allocated struct passwd *

Referenced by entrance_auth_user_set(), and entrance_session_start_user_session().

void* struct_passwd_free ( struct passwd *  pwent  ) 

struct_passwd_free: free a struct passwd *

Parameters:
pwent - the struct passwd pointer we want to free
Returns:
NULL

Referenced by entrance_auth_free(), entrance_auth_reset(), and entrance_auth_user_set().

char* theme_normalize_path ( char *  theme,
const char *  filename 
)

Referenced by main().