PolicyKit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
Synopsis
PolkitTemporaryAuthorization; const gchar * polkit_temporary_authorization_get_id (PolkitTemporaryAuthorization *authorization); const gchar * polkit_temporary_authorization_get_action_id (PolkitTemporaryAuthorization *authorization); PolkitSubject * polkit_temporary_authorization_get_subject (PolkitTemporaryAuthorization *authorization); guint64 polkit_temporary_authorization_get_time_obtained (PolkitTemporaryAuthorization *authorization); guint64 polkit_temporary_authorization_get_time_expires (PolkitTemporaryAuthorization *authorization);
Details
PolkitTemporaryAuthorization
typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization;
The PolkitTemporaryAuthorization struct should not be accessed directly.
polkit_temporary_authorization_get_id ()
const gchar * polkit_temporary_authorization_get_id (PolkitTemporaryAuthorization *authorization);
Gets the opaque identifier for authorization
.
|
A PolkitTemporaryAuthorization. |
Returns : |
A string owned by authorization . Do not free.
|
polkit_temporary_authorization_get_action_id ()
const gchar * polkit_temporary_authorization_get_action_id (PolkitTemporaryAuthorization *authorization);
Gets the action that authorization
is for.
|
A PolkitTemporaryAuthorization. |
Returns : |
A string owned by authorization . Do not free.
|
polkit_temporary_authorization_get_subject ()
PolkitSubject * polkit_temporary_authorization_get_subject (PolkitTemporaryAuthorization *authorization);
Gets the subject that authorization
is for.
|
A PolkitTemporaryAuthorization. |
Returns : |
A PolkitSubject, free with g_object_unref() .
|
polkit_temporary_authorization_get_time_obtained ()
guint64 polkit_temporary_authorization_get_time_obtained (PolkitTemporaryAuthorization *authorization);
Gets the time when authorization
was obtained.
|
A PolkitTemporaryAuthorization. |
Returns : |
Seconds since the Epoch Jan 1. 1970, 0:00 UTC. |
polkit_temporary_authorization_get_time_expires ()
guint64 polkit_temporary_authorization_get_time_expires (PolkitTemporaryAuthorization *authorization);
Gets the time when authorization
will expire.
|
A PolkitTemporaryAuthorization. |
Returns : |
Seconds since the Epoch Jan 1. 1970, 0:00 UTC. |