polkit.h | polkit.h | |||
---|---|---|---|---|
skipping to change at line 45 | skipping to change at line 45 | |||
#include <polkit/polkitunixgroup.h> | #include <polkit/polkitunixgroup.h> | |||
#include <polkit/polkitsubject.h> | #include <polkit/polkitsubject.h> | |||
#include <polkit/polkitunixprocess.h> | #include <polkit/polkitunixprocess.h> | |||
#include <polkit/polkitunixsession.h> | #include <polkit/polkitunixsession.h> | |||
#include <polkit/polkitsystembusname.h> | #include <polkit/polkitsystembusname.h> | |||
#include <polkit/polkitauthorizationresult.h> | #include <polkit/polkitauthorizationresult.h> | |||
#include <polkit/polkitcheckauthorizationflags.h> | #include <polkit/polkitcheckauthorizationflags.h> | |||
#include <polkit/polkitauthority.h> | #include <polkit/polkitauthority.h> | |||
#include <polkit/polkitdetails.h> | #include <polkit/polkitdetails.h> | |||
#include <polkit/polkittemporaryauthorization.h> | #include <polkit/polkittemporaryauthorization.h> | |||
#include <polkit/polkitpermission.h> | ||||
#undef _POLKIT_INSIDE_POLKIT_H | #undef _POLKIT_INSIDE_POLKIT_H | |||
#endif /* __POLKIT_H */ | #endif /* __POLKIT_H */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
polkitauthority.h | polkitauthority.h | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
#define POLKIT_IS_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PO LKIT_TYPE_AUTHORITY)) | #define POLKIT_IS_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PO LKIT_TYPE_AUTHORITY)) | |||
#define POLKIT_IS_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKI T_TYPE_AUTHORITY)) | #define POLKIT_IS_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKI T_TYPE_AUTHORITY)) | |||
#if 0 | #if 0 | |||
typedef struct _PolkitAuthority PolkitAuthority; | typedef struct _PolkitAuthority PolkitAuthority; | |||
#endif | #endif | |||
typedef struct _PolkitAuthorityClass PolkitAuthorityClass; | typedef struct _PolkitAuthorityClass PolkitAuthorityClass; | |||
GType polkit_authority_get_type (void) G_GNUC_CONST; | GType polkit_authority_get_type (void) G_GNUC_CONST; | |||
PolkitAuthority *polkit_authority_get (void); | PolkitAuthority *polkit_authority_get (void) G_GNUC_DEPRECATED_FOR (polkit_ authority_get_sync); | |||
void polkit_authority_get_async (GCancellable *cancella | ||||
ble, | ||||
GAsyncReadyCallback callback | ||||
, | ||||
gpointer user_dat | ||||
a); | ||||
PolkitAuthority *polkit_authority_get_finish (GAsyncResult *res, | ||||
GError **error); | ||||
PolkitAuthority *polkit_authority_get_sync (GCancellable *cancella | ||||
ble, | ||||
GError **error); | ||||
gchar *polkit_authority_get_owner (PolkitAutho | ||||
rity *authority); | ||||
const gchar *polkit_authority_get_backend_name (PolkitAutho rity *authority); | const gchar *polkit_authority_get_backend_name (PolkitAutho rity *authority); | |||
const gchar *polkit_authority_get_backend_version (PolkitAutho rity *authority); | const gchar *polkit_authority_get_backend_version (PolkitAutho rity *authority); | |||
PolkitAuthorityFeatures polkit_authority_get_backend_features (PolkitAutho rity *authority); | PolkitAuthorityFeatures polkit_authority_get_backend_features (PolkitAutho rity *authority); | |||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
GList *polkit_authority_enumerate_actions_sync (PolkitA uthority *authority, | GList *polkit_authority_enumerate_actions_sync (PolkitA uthority *authority, | |||
GCancel lable *cancellable, | GCancel lable *cancellable, | |||
GError **error); | GError **error); | |||
skipping to change at line 112 | skipping to change at line 121 | |||
gboolean polkit_authority_revoke_temporary_authorizations _sync (PolkitAuthority *authority, | gboolean polkit_authority_revoke_temporary_authorizations _sync (PolkitAuthority *authority, | |||
PolkitSubject *subject, | PolkitSubject *subject, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean polkit_authority_revoke_temporary_authorization_ by_id_sync (PolkitAuthority *authority, | gboolean polkit_authority_revoke_temporary_authorization_ by_id_sync (PolkitAuthority *authority, | |||
const gchar *id, | const gchar *id, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean polkit_authority_add_lockdown_for_action_sync (P | ||||
olkitAuthority *authority, | ||||
c | ||||
onst gchar *action_id, | ||||
G | ||||
Cancellable *cancellable, | ||||
G | ||||
Error **error); | ||||
gboolean polkit_authority_remove_lockdown_for_action_sync | ||||
(PolkitAuthority *authority, | ||||
const gchar *action_id, | ||||
GCancellable *cancellable, | ||||
GError **error); | ||||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
void polkit_authority_enumerate_actions (PolkitAuthor ity *authority, | void polkit_authority_enumerate_actions (PolkitAuthor ity *authority, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GAsyncReadyC allback callback, | GAsyncReadyC allback callback, | |||
gpointer user_data); | gpointer user_data); | |||
GList * polkit_authority_enumerate_actions_finish (Polki tAuthority *authority, | GList * polkit_authority_enumerate_actions_finish (Polki tAuthority *authority, | |||
GAsyn cResult *res, | GAsyn cResult *res, | |||
GErro r **error); | GErro r **error); | |||
skipping to change at line 210 | skipping to change at line 209 | |||
void polkit_authority_revoke_temporary_authorization_ by_id (PolkitAuthority *authority, | void polkit_authority_revoke_temporary_authorization_ by_id (PolkitAuthority *authority, | |||
const gchar *id, | const gchar *id, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GAsyncReadyCallback callback, | GAsyncReadyCallback callback, | |||
gpointer user_data); | gpointer user_data); | |||
gboolean polkit_authority_revoke_temporary_authorization_ by_id_finish (PolkitAuthority *authority, | gboolean polkit_authority_revoke_temporary_authorization_ by_id_finish (PolkitAuthority *authority, | |||
GAsyncResult *res, | GAsyncResult *res, | |||
GError **error); | GError **error); | |||
void polkit_authority_add_lockdown_for_action (Polkit | ||||
Authority *authority, | ||||
const | ||||
gchar *action_id, | ||||
GCance | ||||
llable *cancellable, | ||||
GAsync | ||||
ReadyCallback callback, | ||||
gpoint | ||||
er user_data); | ||||
gboolean polkit_authority_add_lockdown_for_action_finish | ||||
(PolkitAuthority *authority, | ||||
GAsyncResult *res, | ||||
GError **error); | ||||
void polkit_authority_remove_lockdown_for_action (Pol | ||||
kitAuthority *authority, | ||||
con | ||||
st gchar *action_id, | ||||
GCa | ||||
ncellable *cancellable, | ||||
GAs | ||||
yncReadyCallback callback, | ||||
gpo | ||||
inter user_data); | ||||
gboolean polkit_authority_remove_lockdown_for_action_fini | ||||
sh (PolkitAuthority *authority, | ||||
GAsyncResult *res, | ||||
GError **error); | ||||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_AUTHORITY_H */ | #endif /* __POLKIT_AUTHORITY_H */ | |||
End of changes. 4 change blocks. | ||||
55 lines changed or deleted | 15 lines changed or added | |||
polkitauthorizationresult.h | polkitauthorizationresult.h | |||
---|---|---|---|---|
skipping to change at line 55 | skipping to change at line 55 | |||
GType polkit_authorization_result_get_type (void) G_GNUC_CONST; | GType polkit_authorization_result_get_type (void) G_GNUC_CONST; | |||
PolkitAuthorizationResult *polkit_authorization_result_new (gboolean is_authorized, | PolkitAuthorizationResult *polkit_authorization_result_new (gboolean is_authorized, | |||
gboolean is_challenge, | gboolean is_challenge, | |||
PolkitDetails *details); | PolkitDetails *details); | |||
PolkitDetails *polkit_authorization_result_get_details (PolkitAuthorizationResult *result); | PolkitDetails *polkit_authorization_result_get_details (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_is_authorized (PolkitAuthorizationResult *result); | gboolean polkit_authorization_result_get_is_authorized (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_is_challenge (PolkitAuthorizationResult *result); | gboolean polkit_authorization_result_get_is_challenge (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_retains_authorization (PolkitAuthorizationResult *result); | gboolean polkit_authorization_result_get_retains_authorization (PolkitAuthorizationResult *result); | |||
const gchar *polkit_authorization_result_get_temporary_authorization_ id (PolkitAuthorizationResult *result); | const gchar *polkit_authorization_result_get_temporary_authorization_ id (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_locked_down (PolkitAuthorizationResult *result); | ||||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | #endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 0 lines changed or added | |||
polkitbackend.h | polkitbackend.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
* | * | |||
* Author: David Zeuthen <davidz@redhat.com> | * Author: David Zeuthen <davidz@redhat.com> | |||
*/ | */ | |||
#ifndef __POLKIT_BACKEND_H | #ifndef __POLKIT_BACKEND_H | |||
#define __POLKIT_BACKEND_H | #define __POLKIT_BACKEND_H | |||
#include <polkit/polkit.h> | #include <polkit/polkit.h> | |||
#if !defined (POLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE) && !defined ( POLKIT_BACKEND_COMPILATION) | #if !defined (POLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE) && !defined ( _POLKIT_BACKEND_COMPILATION) | |||
#error "libpolkitbackend is unstable API and subject to change. You must de fine POLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE to acknowledge this." | #error "libpolkitbackend is unstable API and subject to change. You must de fine POLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE to acknowledge this." | |||
#endif | #endif | |||
#define _POLKIT_BACKEND_INSIDE_POLKIT_BACKEND_H 1 | #define _POLKIT_BACKEND_INSIDE_POLKIT_BACKEND_H 1 | |||
#include <polkitbackend/polkitbackendtypes.h> | #include <polkitbackend/polkitbackendtypes.h> | |||
#include <polkitbackend/polkitbackendauthority.h> | #include <polkitbackend/polkitbackendauthority.h> | |||
#include <polkitbackend/polkitbackendinteractiveauthority.h> | #include <polkitbackend/polkitbackendinteractiveauthority.h> | |||
#include <polkitbackend/polkitbackendlocalauthority.h> | #include <polkitbackend/polkitbackendlocalauthority.h> | |||
#include <polkitbackend/polkitbackendactionpool.h> | ||||
#include <polkitbackend/polkitbackendsessionmonitor.h> | ||||
#include <polkitbackend/polkitbackendconfigsource.h> | ||||
#include <polkitbackend/polkitbackendactionlookup.h> | #include <polkitbackend/polkitbackendactionlookup.h> | |||
#include <polkitbackend/polkitbackendlocalauthorizationstore.h> | ||||
#undef _POLKIT_BACKEND_INSIDE_POLKIT_BACKEND_H | #undef _POLKIT_BACKEND_INSIDE_POLKIT_BACKEND_H | |||
#endif /* __POLKIT_BACKEND_H */ | #endif /* __POLKIT_BACKEND_H */ | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 1 lines changed or added | |||
polkitbackendactionlookup.h | polkitbackendactionlookup.h | |||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
*/ | */ | |||
#if !defined (_POLKIT_BACKEND_COMPILATION) && !defined(_POLKIT_BACKEND_INSI DE_POLKIT_BACKEND_H) | #if !defined (_POLKIT_BACKEND_COMPILATION) && !defined(_POLKIT_BACKEND_INSI DE_POLKIT_BACKEND_H) | |||
#error "Only <polkitbackend/polkitbackend.h> can be included directly, this file may disappear or change contents." | #error "Only <polkitbackend/polkitbackend.h> can be included directly, this file may disappear or change contents." | |||
#endif | #endif | |||
#ifndef __POLKIT_BACKEND_ACTION_LOOKUP_H | #ifndef __POLKIT_BACKEND_ACTION_LOOKUP_H | |||
#define __POLKIT_BACKEND_ACTION_LOOKUP_H | #define __POLKIT_BACKEND_ACTION_LOOKUP_H | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#include "polkitbackendtypes.h" | ||||
#include <polkit/polkit.h> | ||||
#include <polkitbackend/polkitbackendtypes.h> | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* POLKIT_BACKEND_ACTION_LOOKUP_EXTENSION_POINT_NAME: | * POLKIT_BACKEND_ACTION_LOOKUP_EXTENSION_POINT_NAME: | |||
* | * | |||
* Extension point name for looking up action information. | * Extension point name for looking up action information. | |||
*/ | */ | |||
#define POLKIT_BACKEND_ACTION_LOOKUP_EXTENSION_POINT_NAME "polkit-backend-a ction-lookup-1" | #define POLKIT_BACKEND_ACTION_LOOKUP_EXTENSION_POINT_NAME "polkit-backend-a ction-lookup-1" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
polkitbackendauthority.h | polkitbackendauthority.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
#if !defined (_POLKIT_BACKEND_COMPILATION) && !defined(_POLKIT_BACKEND_INSI DE_POLKIT_BACKEND_H) | #if !defined (_POLKIT_BACKEND_COMPILATION) && !defined(_POLKIT_BACKEND_INSI DE_POLKIT_BACKEND_H) | |||
#error "Only <polkitbackend/polkitbackend.h> can be included directly, this file may disappear or change contents." | #error "Only <polkitbackend/polkitbackend.h> can be included directly, this file may disappear or change contents." | |||
#endif | #endif | |||
#ifndef __POLKIT_BACKEND_AUTHORITY_H | #ifndef __POLKIT_BACKEND_AUTHORITY_H | |||
#define __POLKIT_BACKEND_AUTHORITY_H | #define __POLKIT_BACKEND_AUTHORITY_H | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#include "polkitbackendtypes.h" | #include <polkit/polkit.h> | |||
#include <polkitbackend/polkitbackendtypes.h> | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define POLKIT_BACKEND_TYPE_AUTHORITY (polkit_backend_authority_get _type ()) | #define POLKIT_BACKEND_TYPE_AUTHORITY (polkit_backend_authority_get _type ()) | |||
#define POLKIT_BACKEND_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_CAST ( (o), POLKIT_BACKEND_TYPE_AUTHORITY, PolkitBackendAuthority)) | #define POLKIT_BACKEND_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_CAST ( (o), POLKIT_BACKEND_TYPE_AUTHORITY, PolkitBackendAuthority)) | |||
#define POLKIT_BACKEND_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k) , POLKIT_BACKEND_TYPE_AUTHORITY, PolkitBackendAuthorityClass)) | #define POLKIT_BACKEND_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k) , POLKIT_BACKEND_TYPE_AUTHORITY, PolkitBackendAuthorityClass)) | |||
#define POLKIT_BACKEND_AUTHORITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS (( o), POLKIT_BACKEND_TYPE_AUTHORITY,PolkitBackendAuthorityClass)) | #define POLKIT_BACKEND_AUTHORITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS (( o), POLKIT_BACKEND_TYPE_AUTHORITY,PolkitBackendAuthorityClass)) | |||
#define POLKIT_BACKEND_IS_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ( (o), POLKIT_BACKEND_TYPE_AUTHORITY)) | #define POLKIT_BACKEND_IS_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ( (o), POLKIT_BACKEND_TYPE_AUTHORITY)) | |||
#define POLKIT_BACKEND_IS_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k) , POLKIT_BACKEND_TYPE_AUTHORITY)) | #define POLKIT_BACKEND_IS_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k) , POLKIT_BACKEND_TYPE_AUTHORITY)) | |||
skipping to change at line 101 | skipping to change at line 102 | |||
* See polkit_backend_authority_enumerate_temporary_authorizations() | * See polkit_backend_authority_enumerate_temporary_authorizations() | |||
* for details. | * for details. | |||
* @revoke_temporary_authorizations: Called to revoke temporary | * @revoke_temporary_authorizations: Called to revoke temporary | |||
* authorizations or %NULL if the backend doesn't support the operation. | * authorizations or %NULL if the backend doesn't support the operation. | |||
* See polkit_backend_authority_revoke_temporary_authorizations() | * See polkit_backend_authority_revoke_temporary_authorizations() | |||
* for details. | * for details. | |||
* @revoke_temporary_authorization_by_id: Called to revoke a temporary | * @revoke_temporary_authorization_by_id: Called to revoke a temporary | |||
* authorization identified by id or %NULL if the backend doesn't support | * authorization identified by id or %NULL if the backend doesn't support | |||
* the operation. See polkit_backend_authority_revoke_temporary_authorizati on_by_id() | * the operation. See polkit_backend_authority_revoke_temporary_authorizati on_by_id() | |||
* for details. | * for details. | |||
* @add_lockdown_for_action: Called to add lock down for an action. See pol | ||||
kit_backend_authority_add_lockdown_for_action() for details. Can be %NULL i | ||||
f not supported by the backend. | ||||
* @add_lockdown_for_action_finish: Called to finish adding lock down for a | ||||
n an action. See polkit_backend_authority_add_lockdown_for_action_finish() | ||||
for details. Can be %NULL if not supported by the backend. | ||||
* @remove_lockdown_for_action: Called when removing lock down for an actio | ||||
n. See polkit_backend_authority_remove_lockdown_for_action() for details. C | ||||
an be %NULL if not supported by the backend. | ||||
* @remove_lockdown_for_action_finish: Called to finish removing lock down | ||||
for an action. See polkit_backend_authority_remove_lockdown_for_action_fini | ||||
sh() for details. Can be %NULL if not supported by the backend. | ||||
* @system_bus_name_owner_changed: temporary VFunc, to be removed before AP | ||||
I is declared stable. | ||||
* | * | |||
* VFuncs that authority backends need to implement. | * VFuncs that authority backends need to implement. | |||
*/ | */ | |||
struct _PolkitBackendAuthorityClass | struct _PolkitBackendAuthorityClass | |||
{ | { | |||
/*< public >*/ | /*< public >*/ | |||
GObjectClass parent_class; | GObjectClass parent_class; | |||
/* Signals */ | /* Signals */ | |||
void (*changed) (PolkitBackendAuthority *authority); | void (*changed) (PolkitBackendAuthority *authority); | |||
skipping to change at line 176 | skipping to change at line 172 | |||
gboolean (*revoke_temporary_authorizations) (PolkitBackendAuthority *au thority, | gboolean (*revoke_temporary_authorizations) (PolkitBackendAuthority *au thority, | |||
PolkitSubject *ca ller, | PolkitSubject *ca ller, | |||
PolkitSubject *su bject, | PolkitSubject *su bject, | |||
GError **er ror); | GError **er ror); | |||
gboolean (*revoke_temporary_authorization_by_id) (PolkitBackendAuthority *authority, | gboolean (*revoke_temporary_authorization_by_id) (PolkitBackendAuthority *authority, | |||
PolkitSubject *caller, | PolkitSubject *caller, | |||
const gchar *id, | const gchar *id, | |||
GError **error); | GError **error); | |||
void (*add_lockdown_for_action) (PolkitBackendAuthority *authority, | ||||
PolkitSubject *caller, | ||||
const gchar *action_id, | ||||
GAsyncReadyCallback callback, | ||||
gpointer user_data); | ||||
gboolean (*add_lockdown_for_action_finish) (PolkitBackendAuthority *auth | ||||
ority, | ||||
GAsyncResult *res, | ||||
GError **erro | ||||
r); | ||||
void (*remove_lockdown_for_action) (PolkitBackendAuthority *authority, | ||||
PolkitSubject *caller, | ||||
const gchar *action_id, | ||||
GAsyncReadyCallback callback, | ||||
gpointer user_data); | ||||
gboolean (*remove_lockdown_for_action_finish) (PolkitBackendAuthority *a | ||||
uthority, | ||||
GAsyncResult *r | ||||
es, | ||||
GError **e | ||||
rror); | ||||
/* TODO: need something more efficient such that we don't watch all name | ||||
changes */ | ||||
void (*system_bus_name_owner_changed) (PolkitBackendAuthority *authori | ||||
ty, | ||||
const gchar *name, | ||||
const gchar *old_own | ||||
er, | ||||
const gchar *new_own | ||||
er); | ||||
/*< private >*/ | /*< private >*/ | |||
/* Padding for future expansion */ | /* Padding for future expansion */ | |||
void (*_polkit_reserved1) (void); | void (*_polkit_reserved1) (void); | |||
void (*_polkit_reserved2) (void); | void (*_polkit_reserved2) (void); | |||
void (*_polkit_reserved3) (void); | void (*_polkit_reserved3) (void); | |||
void (*_polkit_reserved4) (void); | void (*_polkit_reserved4) (void); | |||
void (*_polkit_reserved5) (void); | void (*_polkit_reserved5) (void); | |||
void (*_polkit_reserved6) (void); | void (*_polkit_reserved6) (void); | |||
void (*_polkit_reserved7) (void); | void (*_polkit_reserved7) (void); | |||
void (*_polkit_reserved8) (void); | void (*_polkit_reserved8) (void); | |||
skipping to change at line 250 | skipping to change at line 220 | |||
/* --- */ | /* --- */ | |||
const gchar *polkit_backend_authority_get_name (PolkitBacke ndAuthority *authority); | const gchar *polkit_backend_authority_get_name (PolkitBacke ndAuthority *authority); | |||
const gchar *polkit_backend_authority_get_version (PolkitBacke ndAuthority *authority); | const gchar *polkit_backend_authority_get_version (PolkitBacke ndAuthority *authority); | |||
PolkitAuthorityFeatures polkit_backend_authority_get_features (PolkitBacke ndAuthority *authority); | PolkitAuthorityFeatures polkit_backend_authority_get_features (PolkitBacke ndAuthority *authority); | |||
void polkit_backend_authority_log (PolkitBackendAuthority *authority, | void polkit_backend_authority_log (PolkitBackendAuthority *authority, | |||
const gchar *format, | const gchar *format, | |||
...); | ...); | |||
void polkit_backend_authority_system_bus_name_owner_changed (PolkitBack | ||||
endAuthority *authority, | ||||
const gcha | ||||
r *name, | ||||
const gcha | ||||
r *old_owner, | ||||
const gcha | ||||
r *new_owner); | ||||
GList *polkit_backend_authority_enumerate_actions (PolkitBackendA uthority *authority, | GList *polkit_backend_authority_enumerate_actions (PolkitBackendA uthority *authority, | |||
PolkitSubject *caller, | PolkitSubject *caller, | |||
const gchar *locale, | const gchar *locale, | |||
GError **error); | GError **error); | |||
void polkit_backend_authority_check_authorization (PolkitBackendA uthority *authority, | void polkit_backend_authority_check_authorization (PolkitBackendA uthority *authority, | |||
PolkitSubject *caller, | PolkitSubject *caller, | |||
PolkitSubject *subject, | PolkitSubject *subject, | |||
const gchar *action_id, | const gchar *action_id, | |||
PolkitDetails *details, | PolkitDetails *details, | |||
skipping to change at line 308 | skipping to change at line 273 | |||
gboolean polkit_backend_authority_revoke_temporary_authorizations (PolkitBa ckendAuthority *authority, | gboolean polkit_backend_authority_revoke_temporary_authorizations (PolkitBa ckendAuthority *authority, | |||
PolkitSu bject *caller, | PolkitSu bject *caller, | |||
PolkitSu bject *subject, | PolkitSu bject *subject, | |||
GError **error); | GError **error); | |||
gboolean polkit_backend_authority_revoke_temporary_authorization_by_id (Pol kitBackendAuthority *authority, | gboolean polkit_backend_authority_revoke_temporary_authorization_by_id (Pol kitBackendAuthority *authority, | |||
Pol kitSubject *caller, | Pol kitSubject *caller, | |||
con st gchar *id, | con st gchar *id, | |||
GEr ror **error); | GEr ror **error); | |||
void polkit_backend_authority_add_lockdown_for_action (PolkitBackendAuthori | ||||
ty *authority, | ||||
PolkitSubject | ||||
*caller, | ||||
const gchar | ||||
*action_id, | ||||
GAsyncReadyCallback | ||||
callback, | ||||
gpointer | ||||
user_data); | ||||
gboolean polkit_backend_authority_add_lockdown_for_action_finish (PolkitBac | ||||
kendAuthority *authority, | ||||
GAsyncRes | ||||
ult *res, | ||||
GError | ||||
**error); | ||||
void polkit_backend_authority_remove_lockdown_for_action (PolkitBackendAuth | ||||
ority *authority, | ||||
PolkitSubject | ||||
*caller, | ||||
const gchar | ||||
*action_id, | ||||
GAsyncReadyCallba | ||||
ck callback, | ||||
gpointer | ||||
user_data); | ||||
gboolean polkit_backend_authority_remove_lockdown_for_action_finish (Polkit | ||||
BackendAuthority *authority, | ||||
GAsync | ||||
Result *res, | ||||
GError | ||||
**error); | ||||
/* --- */ | /* --- */ | |||
PolkitBackendAuthority *polkit_backend_authority_get (void); | PolkitBackendAuthority *polkit_backend_authority_get (void); | |||
gboolean polkit_backend_register_authority (PolkitBackendAuthority *autho | gpointer polkit_backend_authority_register (PolkitBackendAuthority *autho | |||
rity, | rity, | |||
const gchar *well_ | GDBusConnection *conne | |||
known_name, | ction, | |||
const gchar *objec t_path, | const gchar *objec t_path, | |||
GError **error ); | GError **error ); | |||
void polkit_backend_authority_unregister (gpointer registration_id); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_BACKEND_AUTHORITY_H */ | #endif /* __POLKIT_BACKEND_AUTHORITY_H */ | |||
End of changes. 7 change blocks. | ||||
99 lines changed or deleted | 8 lines changed or added | |||
polkitbackendtypes.h | polkitbackendtypes.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
* | * | |||
* Author: David Zeuthen <davidz@redhat.com> | * Author: David Zeuthen <davidz@redhat.com> | |||
*/ | */ | |||
#ifndef __POLKIT_BACKEND_TYPES_H | #ifndef __POLKIT_BACKEND_TYPES_H | |||
#define __POLKIT_BACKEND_TYPES_H | #define __POLKIT_BACKEND_TYPES_H | |||
#include <glib-object.h> | #include <glib-object.h> | |||
struct _PolkitBackendSessionMonitor; | ||||
typedef struct _PolkitBackendSessionMonitor PolkitBackendSessionMonitor; | ||||
struct _PolkitBackendConfigSource; | ||||
typedef struct _PolkitBackendConfigSource PolkitBackendConfigSource; | ||||
struct _PolkitBackendActionLookup; | struct _PolkitBackendActionLookup; | |||
typedef struct _PolkitBackendActionLookup PolkitBackendActionLookup; /* Dum my typedef */ | typedef struct _PolkitBackendActionLookup PolkitBackendActionLookup; /* Dum my typedef */ | |||
struct _PolkitBackendAuthority; | struct _PolkitBackendAuthority; | |||
typedef struct _PolkitBackendAuthority PolkitBackendAuthority; | typedef struct _PolkitBackendAuthority PolkitBackendAuthority; | |||
struct _PolkitBackendInteractiveAuthority; | struct _PolkitBackendInteractiveAuthority; | |||
typedef struct _PolkitBackendInteractiveAuthority PolkitBackendInteractiveA uthority; | typedef struct _PolkitBackendInteractiveAuthority PolkitBackendInteractiveA uthority; | |||
struct _PolkitBackendLocalAuthority; | struct _PolkitBackendLocalAuthority; | |||
typedef struct _PolkitBackendLocalAuthority PolkitBackendLocalAuthority; | typedef struct _PolkitBackendLocalAuthority PolkitBackendLocalAuthority; | |||
struct _PolkitBackendLocalAuthorizationStore; | ||||
typedef struct _PolkitBackendLocalAuthorizationStore PolkitBackendLocalAuth | ||||
orizationStore; | ||||
#endif /* __POLKIT_BACKEND_TYPES_H */ | #endif /* __POLKIT_BACKEND_TYPES_H */ | |||
End of changes. 2 change blocks. | ||||
10 lines changed or deleted | 0 lines changed or added | |||
polkiterror.h | polkiterror.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
#include <glib-object.h> | #include <glib-object.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* POLKIT_ERROR: | * POLKIT_ERROR: | |||
* | * | |||
* Error domain for errors when using PolicyKit. Errors in this domain will be from the #PolkitError | * Error domain for errors when using PolicyKit. Errors in this domain will be from the #PolkitError | |||
* enumeration. See #GError for information on error domains | * enumeration. See #GError for information on error domains | |||
*/ | */ | |||
#define POLKIT_ERROR polkit_error_quark() | #define POLKIT_ERROR (polkit_error_quark()) | |||
GQuark polkit_error_quark (void); | GQuark polkit_error_quark (void); | |||
GType polkit_error_get_type (void) G_GNUC_CONST; | GType polkit_error_get_type (void) G_GNUC_CONST; | |||
#define POLKIT_TYPE_ERROR (polkit_error_get_type ()) | #define POLKIT_TYPE_ERROR (polkit_error_get_type ()) | |||
/** | /** | |||
* PolkitError: | * PolkitError: | |||
* @POLKIT_ERROR_FAILED: The operation failed. | * @POLKIT_ERROR_FAILED: The operation failed. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
polkitprivate.h | polkitprivate.h | |||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
*/ | */ | |||
#ifndef __POLKIT_PRIVATE_H | #ifndef __POLKIT_PRIVATE_H | |||
#define __POLKIT_PRIVATE_H | #define __POLKIT_PRIVATE_H | |||
#include "polkitimplicitauthorization.h" | #include "polkitimplicitauthorization.h" | |||
#include "polkitactiondescription.h" | #include "polkitactiondescription.h" | |||
#include "polkitsubject.h" | #include "polkitsubject.h" | |||
#include "polkitauthorizationresult.h" | #include "polkitauthorizationresult.h" | |||
#include "polkittemporaryauthorization.h" | #include "polkittemporaryauthorization.h" | |||
#include "_polkitbindings.h" | ||||
/* notes: | PolkitActionDescription *polkit_action_description_new_for_gvariant (GVari | |||
* | ant *value); | |||
* - the _new_for_real() functions will ref the passed arg (you will still | GVariant *polkit_action_description_to_gvariant (PolkitActionDescription *a | |||
own the ref) | ction_description); | |||
* - the _get_real() functions will return a ref (you will own the ref) | ||||
* | ||||
*/ | ||||
PolkitActionDescription *polkit_action_description_new_for_real (_PolkitAc | GVariant *polkit_subject_to_gvariant (PolkitSubject *subject); | |||
tionDescription *real); | GVariant *polkit_identity_to_gvariant (PolkitIdentity *identity); | |||
_PolkitActionDescription *polkit_action_description_get_real (PolkitAct | ||||
ionDescription *action_description); | ||||
PolkitSubject *polkit_subject_new_for_real (_PolkitSubject *real); | PolkitSubject *polkit_subject_new_for_gvariant (GVariant *variant, GError | |||
_PolkitSubject *polkit_subject_get_real (PolkitSubject *subject); | **error); | |||
PolkitIdentity *polkit_identity_new_for_gvariant (GVariant *variant, GError | ||||
**error); | ||||
PolkitIdentity *polkit_identity_new_for_real (_PolkitIdentity *real); | PolkitAuthorizationResult *polkit_authorization_result_new_for_gvariant (G | |||
_PolkitIdentity *polkit_identity_get_real (PolkitIdentity *identity); | Variant *value); | |||
GVariant *polkit_authorization_result_to_gvariant (PolkitAuthorizationResul | ||||
t *authorization_result); | ||||
PolkitAuthorizationResult *polkit_authorization_result_new_for_real (_Polk | PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_gvaria | |||
itAuthorizationResult *real); | nt (GVariant *value, | |||
_PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAut | ||||
horizationResult *authorization_result); | GError **error); | |||
GVariant *polkit_temporary_authorization_to_gvariant (PolkitTemporaryAuthor | ||||
ization *authorization); | ||||
_PolkitTemporaryAuthorization *polkit_temporary_authorization_get_real (Pol | GVariant *polkit_details_to_gvariant (PolkitDetails *details); | |||
kitTemporaryAuthorization *authorization); | PolkitDetails *polkit_details_new_for_gvariant (GVariant *value); | |||
PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_real ( | ||||
_PolkitTemporaryAuthorization *real); | ||||
PolkitDetails *polkit_details_new_for_hash (GHashTable *hash); | PolkitActionDescription * | |||
GHashTable *polkit_details_get_hash (PolkitDetails *details); | polkit_action_description_new (const gchar *action_id, | |||
const gchar *description, | ||||
const gchar *message, | ||||
const gchar *vendor_name, | ||||
const gchar *vendor_url, | ||||
const gchar *icon_name, | ||||
PolkitImplicitAuthorization implicit_any, | ||||
PolkitImplicitAuthorization implicit_inacti | ||||
ve, | ||||
PolkitImplicitAuthorization implicit_active | ||||
, | ||||
GHashTable *annotations); | ||||
#endif /* __POLKIT_PRIVATE_H */ | #endif /* __POLKIT_PRIVATE_H */ | |||
End of changes. 8 change blocks. | ||||
26 lines changed or deleted | 35 lines changed or added | |||
polkittypes.h | polkittypes.h | |||
---|---|---|---|---|
skipping to change at line 61 | skipping to change at line 61 | |||
struct _PolkitAuthorizationResult; | struct _PolkitAuthorizationResult; | |||
typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; | typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; | |||
struct _PolkitDetails; | struct _PolkitDetails; | |||
typedef struct _PolkitDetails PolkitDetails; | typedef struct _PolkitDetails PolkitDetails; | |||
struct _PolkitTemporaryAuthorization; | struct _PolkitTemporaryAuthorization; | |||
typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization; | typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization; | |||
struct _PolkitPermission; | ||||
typedef struct _PolkitPermission PolkitPermission; | ||||
#endif /* __POLKIT_TYPES_H */ | #endif /* __POLKIT_TYPES_H */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||