OpenSync  0.22
opensync_user_internals.h
1 #ifndef _OPENSYNC_USER_INTERNALS_H_
2 #define _OPENSYNC_USER_INTERNALS_H_
3 
8 {
9 #ifndef DOXYGEN_SHOULD_SKIP_THIS
10  uid_t uid;
11  gid_t gid;
12  G_CONST_RETURN gchar *username;
13  G_CONST_RETURN gchar *homedir;
14  char *confdir;
15 #endif
16 };
17 
19 void osync_user_free(OSyncUserInfo *info);
20 void osync_user_set_confdir(OSyncUserInfo *user, const char *path);
21 const char *osync_user_get_confdir(OSyncUserInfo *user);
22 
23 #endif //_OPENSYNC_USER_INTERNALS_H_
Represent a user.
Represent an error.
OSyncUserInfo * osync_user_new(OSyncError **error)
This will create a new user.
Definition: opensync_user.c:40
const char * osync_user_get_confdir(OSyncUserInfo *user)
This will get the configdir for the given user.
Definition: opensync_user.c:93
void osync_user_set_confdir(OSyncUserInfo *user, const char *path)
This will set the configdir for the given user.
Definition: opensync_user.c:75