![]() |
![]() |
![]() |
PolicyKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
PolkitAuthorizationResult; PolkitAuthorizationResult * polkit_authorization_result_new (gboolean is_authorized, gboolean is_challenge, PolkitDetails *details); gboolean polkit_authorization_result_get_is_authorized (PolkitAuthorizationResult *result); gboolean polkit_authorization_result_get_is_challenge (PolkitAuthorizationResult *result); PolkitDetails * polkit_authorization_result_get_details (PolkitAuthorizationResult *result);
typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult;
The PolkitAuthorizationResult struct should not be accessed directly.
PolkitAuthorizationResult * polkit_authorization_result_new (gboolean is_authorized, gboolean is_challenge, PolkitDetails *details);
Creates a new PolkitAuthorizationResult object.
|
Whether the subject is authorized. |
|
Whether the subject is authorized if more
information is provided. Must be FALSE unless is_authorized is
TRUE .
|
|
Must be NULL unless is_authorized is TRUE
|
Returns : |
A PolkitAuthorizationResult object. Free with g_object_unref() .
|
gboolean polkit_authorization_result_get_is_authorized (PolkitAuthorizationResult *result);
Gets whether the subject is authorized.
|
A PolkitAuthorizationResult. |
Returns : |
Whether the subject is authorized. |
gboolean polkit_authorization_result_get_is_challenge (PolkitAuthorizationResult *result);
Gets whether the subject is authorized if more information is provided.
|
A PolkitAuthorizationResult. |
Returns : |
Whether the subject is authorized if more information is provided. |
PolkitDetails * polkit_authorization_result_get_details (PolkitAuthorizationResult *result);
Gets the details about the result.
|
A PolkitAuthorizationResult. |
Returns : |
A PolkitDetails object. This object is owned by result
and should not be freed by the caller.
|