OpenSync  0.22
Data Structures | Functions
OpenSync User Internals

The private API of dealing with users. More...

Data Structures

struct  OSyncUserInfo
 Represent a user. More...
 

Functions

OSyncUserInfoosync_user_new (OSyncError **error)
 This will create a new user. More...
 
void osync_user_free (OSyncUserInfo *info)
 
void osync_user_set_confdir (OSyncUserInfo *user, const char *path)
 This will set the configdir for the given user. More...
 
const char * osync_user_get_confdir (OSyncUserInfo *user)
 This will get the configdir for the given user. More...
 

Detailed Description

The private API of dealing with users.

Function Documentation

OSyncUserInfo* osync_user_new ( OSyncError **  error)

This will create a new user.

The user will hold information like uid, gid, home directory etc

Returns
A pointer to a newly allocated OSyncUserInfo

Definition at line 40 of file opensync_user.c.

Referenced by osengine_new(), and osync_env_load_groups().

void osync_user_set_confdir ( OSyncUserInfo user,
const char *  path 
)

This will set the configdir for the given user.

This will set the configdir for the given user

Parameters
userThe user to change
pathThe new configdir path

Definition at line 75 of file opensync_user.c.

const char* osync_user_get_confdir ( OSyncUserInfo user)

This will get the configdir for the given user.

This will set the configdir for the given user

Parameters
userThe user to get the path from
Returns
The configdir path

Definition at line 93 of file opensync_user.c.

Referenced by osengine_new(), and osync_env_load_groups().