summaryrefslogtreecommitdiff
path: root/src/polkit/polkitauthority.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/polkit/polkitauthority.h')
-rw-r--r--src/polkit/polkitauthority.h38
1 files changed, 34 insertions, 4 deletions
diff --git a/src/polkit/polkitauthority.h b/src/polkit/polkitauthority.h
index e9df6d0..61a6e7c 100644
--- a/src/polkit/polkitauthority.h
+++ b/src/polkit/polkitauthority.h
@@ -71,14 +71,14 @@ PolkitAuthorizationResult *polkit_authority_check_authorization_sync (PolkitAuth
GError **error);
gboolean polkit_authority_register_authentication_agent_sync (PolkitAuthority *authority,
- const gchar *session_id,
+ PolkitSubject *subject,
const gchar *locale,
const gchar *object_path,
GCancellable *cancellable,
GError **error);
gboolean polkit_authority_unregister_authentication_agent_sync (PolkitAuthority *authority,
- const gchar *session_id,
+ PolkitSubject *subject,
const gchar *object_path,
GCancellable *cancellable,
GError **error);
@@ -89,6 +89,16 @@ gboolean polkit_authority_authentication_agent_response_sync (
GCancellable *cancellable,
GError **error);
+GList *polkit_authority_enumerate_temporary_authorizations_sync (PolkitAuthority *authority,
+ PolkitSubject *subject,
+ GCancellable *cancellable,
+ GError **error);
+
+gboolean polkit_authority_revoke_temporary_authorizations_sync (PolkitAuthority *authority,
+ PolkitSubject *subject,
+ GCancellable *cancellable,
+ GError **error);
+
/* ---------------------------------------------------------------------------------------------------- */
void polkit_authority_enumerate_actions (PolkitAuthority *authority,
@@ -114,7 +124,7 @@ PolkitAuthorizationResult *polkit_authority_check_authorization_finish (PolkitAu
GError **error);
void polkit_authority_register_authentication_agent (PolkitAuthority *authority,
- const gchar *session_id,
+ PolkitSubject *subject,
const gchar *locale,
const gchar *object_path,
GCancellable *cancellable,
@@ -126,7 +136,7 @@ gboolean polkit_authority_register_authentication_agent_finish
GError **error);
void polkit_authority_unregister_authentication_agent (PolkitAuthority *authority,
- const gchar *session_id,
+ PolkitSubject *subject,
const gchar *object_path,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -147,6 +157,26 @@ gboolean polkit_authority_authentication_agent_response_finish
GAsyncResult *res,
GError **error);
+void polkit_authority_enumerate_temporary_authorizations (PolkitAuthority *authority,
+ PolkitSubject *subject,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+GList *polkit_authority_enumerate_temporary_authorizations_finish (PolkitAuthority *authority,
+ GAsyncResult *res,
+ GError **error);
+
+void polkit_authority_revoke_temporary_authorizations (PolkitAuthority *authority,
+ PolkitSubject *subject,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean polkit_authority_revoke_temporary_authorizations_finish (PolkitAuthority *authority,
+ GAsyncResult *res,
+ GError **error);
+
/* ---------------------------------------------------------------------------------------------------- */
G_END_DECLS