| PolicyKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
PolkitUnixUser; PolkitIdentity * polkit_unix_user_new (gint uid); PolkitIdentity * polkit_unix_user_new_for_name (const gchar *name,GError **error); gint polkit_unix_user_get_uid (PolkitUnixUser *user); void polkit_unix_user_set_uid (PolkitUnixUser *user,gint uid); const gchar * polkit_unix_user_get_name (PolkitUnixUser *user);
typedef struct _PolkitUnixUser PolkitUnixUser;
The PolkitUnixUser struct should not be accessed directly.
PolkitIdentity * polkit_unix_user_new (gint uid);
Creates a new PolkitUnixUser object for uid.
|
A UNIX user id. |
Returns : |
A PolkitUnixUser object. Free with g_object_unref(). [transfer full]
|
PolkitIdentity * polkit_unix_user_new_for_name (const gchar *name,GError **error);
Creates a new PolkitUnixUser object for a user with the user name
name.
|
A UNIX user name. |
|
Return location for error. |
Returns : |
A PolkitUnixUser object or NULL if error is set. [allow-none][transfer full]
|
gint polkit_unix_user_get_uid (PolkitUnixUser *user);
Gets the UNIX user id for user.
|
A PolkitUnixUser. |
Returns : |
A UNIX user id. |
void polkit_unix_user_set_uid (PolkitUnixUser *user,gint uid);
Sets uid for user.
|
A PolkitUnixUser. |
|
A UNIX user id. |
const gchar * polkit_unix_user_get_name (PolkitUnixUser *user);
Get the user's name.
|
A PolkitUnixUser. |
Returns : |
User name string or NULL if user uid not found. [allow-none][transfer none]
|
"uid" property"uid" gint : Read / Write / Construct
The UNIX user id.
Allowed values: >= 0
Default value: 0