OpenSync User Internals
[OpenSync Private API]

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.
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.
const char * osync_user_get_confdir (OSyncUserInfo *user)
 This will get the configdir for the given user.


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:
user The user to change
path The 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:
user The 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().


Generated on Wed Mar 25 15:19:27 2009 for OpenSync by  doxygen 1.5.8