| polkitactiondescription.h | | polkitactiondescription.h | |
| | | | |
| skipping to change at line 53 | | skipping to change at line 53 | |
| typedef struct _PolkitActionDescription PolkitActionDescription; | | typedef struct _PolkitActionDescription PolkitActionDescription; | |
| #endif | | #endif | |
| typedef struct _PolkitActionDescriptionClass PolkitActionDescriptionClass; | | typedef struct _PolkitActionDescriptionClass PolkitActionDescriptionClass; | |
| | | | |
| GType polkit_action_description_get_type (void)
G_GNUC_CONST; | | GType polkit_action_description_get_type (void)
G_GNUC_CONST; | |
| const gchar *polkit_action_description_get_action_id (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_action_id (Polki
tActionDescription *action_description); | |
| const gchar *polkit_action_description_get_description (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_description (Polki
tActionDescription *action_description); | |
| const gchar *polkit_action_description_get_message (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_message (Polki
tActionDescription *action_description); | |
| const gchar *polkit_action_description_get_vendor_name (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_vendor_name (Polki
tActionDescription *action_description); | |
| const gchar *polkit_action_description_get_vendor_url (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_vendor_url (Polki
tActionDescription *action_description); | |
|
| GIcon *polkit_action_description_get_icon (Polki
tActionDescription *action_description); | | const gchar *polkit_action_description_get_icon_name (Polki
tActionDescription *action_description); | |
| | | | |
| PolkitImplicitAuthorization polkit_action_description_get_implicit_any (Pol
kitActionDescription *action_description); | | PolkitImplicitAuthorization polkit_action_description_get_implicit_any (Pol
kitActionDescription *action_description); | |
| PolkitImplicitAuthorization polkit_action_description_get_implicit_inactive
(PolkitActionDescription *action_description); | | PolkitImplicitAuthorization polkit_action_description_get_implicit_inactive
(PolkitActionDescription *action_description); | |
| PolkitImplicitAuthorization polkit_action_description_get_implicit_active (
PolkitActionDescription *action_description); | | PolkitImplicitAuthorization polkit_action_description_get_implicit_active (
PolkitActionDescription *action_description); | |
| | | | |
| const gchar *polkit_action_description_get_annotation (Polki
tActionDescription *action_description, | | const gchar *polkit_action_description_get_annotation (Polki
tActionDescription *action_description, | |
| const
gchar *key); | | const
gchar *key); | |
| const gchar * const *polkit_action_description_get_annotation_keys (Polki
tActionDescription *action_description); | | const gchar * const *polkit_action_description_get_annotation_keys (Polki
tActionDescription *action_description); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 1 lines changed or added | |
|
| polkitagentlistener.h | | polkitagentlistener.h | |
| | | | |
| skipping to change at line 70 | | skipping to change at line 70 | |
| * VFuncs that authentication agents needs to implement. | | * VFuncs that authentication agents needs to implement. | |
| */ | | */ | |
| struct _PolkitAgentListenerClass | | struct _PolkitAgentListenerClass | |
| { | | { | |
| /*< public >*/ | | /*< public >*/ | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| /* Vtable */ | | /* Vtable */ | |
| void (*initiate_authentication) (PolkitAgentListener *listene
r, | | void (*initiate_authentication) (PolkitAgentListener *listene
r, | |
| const gchar *action_
id, | | const gchar *action_
id, | |
|
| | | const gchar *message | |
| | | , | |
| | | const gchar *icon_na | |
| | | me, | |
| | | PolkitDetails *details | |
| | | , | |
| const gchar *cookie, | | const gchar *cookie, | |
| GList *identit
ies, | | GList *identit
ies, | |
| GCancellable *cancell
able, | | GCancellable *cancell
able, | |
| GAsyncReadyCallback callbac
k, | | GAsyncReadyCallback callbac
k, | |
| gpointer user_da
ta); | | gpointer user_da
ta); | |
| | | | |
| gboolean (*initiate_authentication_finish) (PolkitAgentListener *listene
r, | | gboolean (*initiate_authentication_finish) (PolkitAgentListener *listene
r, | |
| GAsyncResult *res, | | GAsyncResult *res, | |
| GError **error); | | GError **error); | |
| | | | |
| | | | |
| skipping to change at line 95 | | skipping to change at line 98 | |
| 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); | |
| }; | | }; | |
| | | | |
| GType polkit_agent_listener_get_type (void) G_GN
UC_CONST; | | GType polkit_agent_listener_get_type (void) G_GN
UC_CONST; | |
| void polkit_agent_listener_initiate_authentication (PolkitAgen
tListener *listener, | | void polkit_agent_listener_initiate_authentication (PolkitAgen
tListener *listener, | |
| const gcha
r *action_id, | | const gcha
r *action_id, | |
|
| | | const gcha | |
| | | r *message, | |
| | | const gcha | |
| | | r *icon_name, | |
| | | PolkitDeta | |
| | | ils *details, | |
| const gcha
r *cookie, | | const gcha
r *cookie, | |
| GList
*identities, | | GList
*identities, | |
| GCancellab
le *cancellable, | | GCancellab
le *cancellable, | |
| GAsyncRead
yCallback callback, | | GAsyncRead
yCallback callback, | |
| gpointer
user_data); | | gpointer
user_data); | |
| gboolean polkit_agent_listener_initiate_authentication_finish (PolkitAgen
tListener *listener, | | gboolean polkit_agent_listener_initiate_authentication_finish (PolkitAgen
tListener *listener, | |
| GAsyncResu
lt *res, | | GAsyncResu
lt *res, | |
| GError
**error); | | GError
**error); | |
| | | | |
| gboolean polkit_agent_register_listener (PolkitAg
entListener *listener, | | gboolean polkit_agent_register_listener (PolkitAg
entListener *listener, | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 12 lines changed or added | |
|
| polkitauthority.h | | polkitauthority.h | |
| | | | |
| skipping to change at line 65 | | skipping to change at line 65 | |
| GError
**error); | | GError
**error); | |
| | | | |
| GList *polkit_authority_enumerate_users_sync (PolkitAut
hority *authority, | | GList *polkit_authority_enumerate_users_sync (PolkitAut
hority *authority, | |
| GCancella
ble *cancellable, | | GCancella
ble *cancellable, | |
| GError
**error); | | GError
**error); | |
| | | | |
| GList *polkit_authority_enumerate_groups_sync (PolkitAu
thority *authority, | | GList *polkit_authority_enumerate_groups_sync (PolkitAu
thority *authority, | |
| GCancell
able *cancellable, | | GCancell
able *cancellable, | |
| GError
**error); | | GError
**error); | |
| | | | |
|
| PolkitAuthorizationResult polkit_authority_check_authorization_sync (Polki
tAuthority *authority, | | PolkitAuthorizationResult *polkit_authority_check_authorization_sync (Polki
tAuthority *authority, | |
| Polki
tSubject *subject, | | Polki
tSubject *subject, | |
| const
gchar *action_id, | | const
gchar *action_id, | |
|
| | | Polki
tDetails *details, | |
| Polki
tCheckAuthorizationFlags flags, | | Polki
tCheckAuthorizationFlags flags, | |
| GCanc
ellable *cancellable, | | GCanc
ellable *cancellable, | |
| GErro
r **error); | | GErro
r **error); | |
| | | | |
|
| gboolean polkit_authority_obtain_authorization_sync (Polk | | | |
| itAuthority *authority, | | | |
| Polk | | | |
| itSubject *subject, | | | |
| cons | | | |
| t gchar *action_id, | | | |
| GCan | | | |
| cellable *cancellable, | | | |
| GErr | | | |
| or **error); | | | |
| | | | |
| gboolean polkit_authority_register_authentication_agent_s
ync (PolkitAuthority *authority, | | gboolean polkit_authority_register_authentication_agent_s
ync (PolkitAuthority *authority, | |
|
const gchar *session_id, | |
const gchar *session_id, | |
|
| | |
const gchar *locale, | |
|
const gchar *object_path, | |
const gchar *object_path, | |
|
GCancellable *cancellable, | |
GCancellable *cancellable, | |
|
GError **error); | |
GError **error); | |
| | | | |
| gboolean polkit_authority_unregister_authentication_agent
_sync (PolkitAuthority *authority, | | gboolean polkit_authority_unregister_authentication_agent
_sync (PolkitAuthority *authority, | |
|
const gchar *session_id, | |
const gchar *session_id, | |
|
const gchar *object_path, | |
const gchar *object_path, | |
|
GCancellable *cancellable, | |
GCancellable *cancellable, | |
|
GError **error); | |
GError **error); | |
| | | | |
| | | | |
| skipping to change at line 110 | | skipping to change at line 106 | |
| 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); | |
| | | | |
| void polkit_authority_check_authorization (PolkitAuth
ority *authority, | | void polkit_authority_check_authorization (PolkitAuth
ority *authority, | |
| PolkitSubj
ect *subject, | | PolkitSubj
ect *subject, | |
| const gcha
r *action_id, | | const gcha
r *action_id, | |
|
| | | PolkitDeta
ils *details, | |
| PolkitChec
kAuthorizationFlags flags, | | PolkitChec
kAuthorizationFlags flags, | |
| GCancellab
le *cancellable, | | GCancellab
le *cancellable, | |
| GAsyncRead
yCallback callback, | | GAsyncRead
yCallback callback, | |
| gpointer
user_data); | | gpointer
user_data); | |
| | | | |
|
| PolkitAuthorizationResult polkit_authority_check_authorization_finish (Pol
kitAuthority *authority, | | PolkitAuthorizationResult *polkit_authority_check_authorization_finish (Pol
kitAuthority *authority, | |
| GAs
yncResult *res, | | GAs
yncResult *res, | |
| GEr
ror **error); | | GEr
ror **error); | |
| | | | |
|
| void polkit_authority_obtain_authorization (PolkitAut | | | |
| hority *authority, | | | |
| PolkitSub | | | |
| ject *subject, | | | |
| const gch | | | |
| ar *action_id, | | | |
| GCancella | | | |
| ble *cancellable, | | | |
| GAsyncRea | | | |
| dyCallback callback, | | | |
| gpointer | | | |
| user_data); | | | |
| | | | |
| gboolean polkit_authority_obtain_authorization_finish (Po | | | |
| lkitAuthority *authority, | | | |
| GA | | | |
| syncResult *res, | | | |
| GE | | | |
| rror **error); | | | |
| | | | |
| void polkit_authority_register_authentication_agent (
PolkitAuthority *authority, | | void polkit_authority_register_authentication_agent (
PolkitAuthority *authority, | |
|
const gchar *session_id, | |
const gchar *session_id, | |
|
| | |
const gchar *locale, | |
|
const gchar *object_path, | |
const gchar *object_path, | |
|
GCancellable *cancellable, | |
GCancellable *cancellable, | |
|
GAsyncReadyCallback callback, | |
GAsyncReadyCallback callback, | |
|
gpointer user_data); | |
gpointer user_data); | |
| | | | |
| gboolean polkit_authority_register_authentication_agent_f
inish (PolkitAuthority *authority, | | gboolean polkit_authority_register_authentication_agent_f
inish (PolkitAuthority *authority, | |
|
GAsyncResult *res, | |
GAsyncResult *res, | |
|
GError **error); | |
GError **error); | |
| | | | |
| void polkit_authority_unregister_authentication_agent
(PolkitAuthority *authority, | | void polkit_authority_unregister_authentication_agent
(PolkitAuthority *authority, | |
| | | | |
End of changes. 8 change blocks. |
| 33 lines changed or deleted | | 6 lines changed or added | |
|
| polkitauthorizationresult.h | | polkitauthorizationresult.h | |
| | | | |
| skipping to change at line 30 | | skipping to change at line 30 | |
| */ | | */ | |
| | | | |
| #if !defined (_POLKIT_COMPILATION) && !defined(_POLKIT_INSIDE_POLKIT_H) | | #if !defined (_POLKIT_COMPILATION) && !defined(_POLKIT_INSIDE_POLKIT_H) | |
| #error "Only <polkit/polkit.h> can be included directly, this file may disa
ppear or change contents." | | #error "Only <polkit/polkit.h> can be included directly, this file may disa
ppear or change contents." | |
| #endif | | #endif | |
| | | | |
| #ifndef __POLKIT_AUTHORIZATION_RESULT_H | | #ifndef __POLKIT_AUTHORIZATION_RESULT_H | |
| #define __POLKIT_AUTHORIZATION_RESULT_H | | #define __POLKIT_AUTHORIZATION_RESULT_H | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
|
| | | #include <polkit/polkittypes.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
|
| GType polkit_authorization_result_get_type (void) G_GNUC_CONST; | | #define POLKIT_TYPE_AUTHORIZATION_RESULT (polkit_authorization_res | |
| | | ult_get_type()) | |
| | | #define POLKIT_AUTHORIZATION_RESULT(o) (G_TYPE_CHECK_INSTANCE_CA | |
| | | ST ((o), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResult)) | |
| | | #define POLKIT_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST( | |
| | | (k), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResultClass)) | |
| | | #define POLKIT_AUTHORIZATION_RESULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLAS | |
| | | S ((o), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResultClass)) | |
| | | #define POLKIT_IS_AUTHORIZATION_RESULT(o) (G_TYPE_CHECK_INSTANCE_TY | |
| | | PE ((o), POLKIT_TYPE_AUTHORIZATION_RESULT)) | |
| | | #define POLKIT_IS_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE | |
| | | ((k), POLKIT_TYPE_AUTHORIZATION_RESULT)) | |
| | | | |
|
| #define POLKIT_TYPE_AUTHORIZATION_RESULT (polkit_authorization_result_get_t | | #if 0 | |
| ype ()) | | typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; | |
| | | #endif | |
| | | typedef struct _PolkitAuthorizationResultClass PolkitAuthorizationResultCla | |
| | | ss; | |
| | | | |
|
| /** | | GType polkit_authorization_result_get_type (v | |
| * PolkitAuthorizationResult: | | oid) G_GNUC_CONST; | |
| * @POLKIT_AUTHORIZATION_RESULT_NOT_AUTHORIZED: The subject is not authoriz | | PolkitAuthorizationResult *polkit_authorization_result_new (g | |
| ed for the specified action | | boolean is_authorized, | |
| * @POLKIT_AUTHORIZATION_RESULT_AUTHORIZED: The subject is authorized for t | | g | |
| he specified action | | boolean is_challenge, | |
| * @POLKIT_AUTHORIZATION_RESULT_CHALLENGE: The subject is authorized if mor | | P | |
| e information is provided | | olkitDetails *details); | |
| * | | gboolean polkit_authorization_result_get_is_authorized (P | |
| * Result codes for checking whether a subject is authorized for an action. | | olkitAuthorizationResult *result); | |
| */ | | gboolean polkit_authorization_result_get_is_challenge (P | |
| typedef enum | | olkitAuthorizationResult *result); | |
| { | | PolkitDetails *polkit_authorization_result_get_details (P | |
| POLKIT_AUTHORIZATION_RESULT_NOT_AUTHORIZED = 0, | | olkitAuthorizationResult *result); | |
| POLKIT_AUTHORIZATION_RESULT_AUTHORIZED = 1, | | | |
| POLKIT_AUTHORIZATION_RESULT_CHALLENGE = 2, | | /* ------------------------------------------------------------------------ | |
| } PolkitAuthorizationResult; | | ---------------------------- */ | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | | #endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | |
| | | | |
End of changes. 4 change blocks. |
| 20 lines changed or deleted | | 35 lines changed or added | |
|
| polkitbackendauthority.h | | polkitbackendauthority.h | |
| | | | |
| skipping to change at line 73 | | skipping to change at line 73 | |
| * @changed: Function pointer for #PolkitBackendAuthorityClass::changed sig
nal. | | * @changed: Function pointer for #PolkitBackendAuthorityClass::changed sig
nal. | |
| * @enumerate_actions: Enumerates registered actions on the | | * @enumerate_actions: Enumerates registered actions on the | |
| * system. See polkit_backend_authority_enumerate_actions() for | | * system. See polkit_backend_authority_enumerate_actions() for | |
| * details. | | * details. | |
| * @check_authorization: Called to initiate an asynchronous | | * @check_authorization: Called to initiate an asynchronous | |
| * authorization check. See | | * authorization check. See | |
| * polkit_backend_authority_check_authorization() for details. | | * polkit_backend_authority_check_authorization() for details. | |
| * @check_authorization_finish: Called when finishing an authorization | | * @check_authorization_finish: Called when finishing an authorization | |
| * check. See polkit_backend_authority_check_authorization_finish() | | * check. See polkit_backend_authority_check_authorization_finish() | |
| * for details. | | * for details. | |
|
| * @obtain_authorization: Called to obtain an authorization or %NULL | | | |
| * if the backend doesn't support the operation. See | | | |
| * polkit_backend_authority_obtain_authorization() for details. | | | |
| * @obtain_authorization_finish: Called when finishing obtaining | | | |
| * an authorization or %NULL if the backend doesn't support the | | | |
| * operation. See polkit_backend_authority_obtain_authorization_finish() | | | |
| * for details. | | | |
| * @register_authentication_agent: Called when an authentication agent | | * @register_authentication_agent: Called when an authentication agent | |
| * is attempting to register or %NULL if the backend doesn't support | | * is attempting to register or %NULL if the backend doesn't support | |
| * the operation. See | | * the operation. See | |
| * polkit_backend_authority_register_authentication_agent() for | | * polkit_backend_authority_register_authentication_agent() for | |
| * details. | | * details. | |
| * @unregister_authentication_agent: Called when an authentication | | * @unregister_authentication_agent: Called when an authentication | |
| * agent is attempting to unregister or %NULL if the backend doesn't | | * agent is attempting to unregister or %NULL if the backend doesn't | |
| * support the operation. See | | * support the operation. See | |
| * polkit_backend_authority_unregister_authentication_agent() for | | * polkit_backend_authority_unregister_authentication_agent() for | |
| * details. | | * details. | |
| | | | |
| skipping to change at line 133 | | skipping to change at line 126 | |
| | | | |
| GList *(*enumerate_actions) (PolkitBackendAuthority *authority, | | GList *(*enumerate_actions) (PolkitBackendAuthority *authority, | |
| PolkitSubject *caller, | | PolkitSubject *caller, | |
| const gchar *locale, | | const gchar *locale, | |
| GError **error); | | GError **error); | |
| | | | |
| void (*check_authorization) (PolkitBackendAuthority *authority, | | void (*check_authorization) (PolkitBackendAuthority *authority, | |
| PolkitSubject *caller, | | PolkitSubject *caller, | |
| PolkitSubject *subject, | | PolkitSubject *subject, | |
| const gchar *action_id, | | const gchar *action_id, | |
|
| | | PolkitDetails *details, | |
| PolkitCheckAuthorizationFlags flags, | | PolkitCheckAuthorizationFlags flags, | |
| GCancellable *cancellable, | | GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | | GAsyncReadyCallback callback, | |
| gpointer user_data); | | gpointer user_data); | |
| | | | |
|
| PolkitAuthorizationResult (*check_authorization_finish) (PolkitBackendAut | | PolkitAuthorizationResult * (*check_authorization_finish) (PolkitBackendA | |
| hority *authority, | | uthority *authority, | |
| GAsyncResult | | GAsyncResult | |
| *res, | | *res, | |
| GError | | GError | |
| **error); | | **error); | |
| | | | |
| void (*obtain_authorization) (PolkitBackendAuthority *authority, | | | |
| PolkitSubject *caller, | | | |
| PolkitSubject *subject, | | | |
| const gchar *action_id, | | | |
| GCancellable *cancellable, | | | |
| GAsyncReadyCallback callback, | | | |
| gpointer user_data); | | | |
| | | | |
| gboolean (*obtain_authorization_finish) (PolkitBackendAuthority *authori | | | |
| ty, | | | |
| GAsyncResult *res, | | | |
| GError **error); | | | |
| | | | |
| gboolean (*register_authentication_agent) (PolkitBackendAuthority *auth
ority, | | gboolean (*register_authentication_agent) (PolkitBackendAuthority *auth
ority, | |
| PolkitSubject *call
er, | | PolkitSubject *call
er, | |
| const gchar *sess
ion_id, | | const gchar *sess
ion_id, | |
|
| | | const gchar *loca
le, | |
| const gchar *obje
ct_path, | | const gchar *obje
ct_path, | |
| GError **erro
r); | | GError **erro
r); | |
| | | | |
| gboolean (*unregister_authentication_agent) (PolkitBackendAuthority *au
thority, | | gboolean (*unregister_authentication_agent) (PolkitBackendAuthority *au
thority, | |
| PolkitSubject *ca
ller, | | PolkitSubject *ca
ller, | |
| const gchar *se
ssion_id, | | const gchar *se
ssion_id, | |
| const gchar *ob
ject_path, | | const gchar *ob
ject_path, | |
| GError **er
ror); | | GError **er
ror); | |
| | | | |
| gboolean (*authentication_agent_response) (PolkitBackendAuthority *auth
ority, | | gboolean (*authentication_agent_response) (PolkitBackendAuthority *auth
ority, | |
| | | | |
| skipping to change at line 241 | | skipping to change at line 224 | |
| GError
**error); | | GError
**error); | |
| | | | |
| GList *polkit_backend_authority_enumerate_groups (PolkitBackendA
uthority *authority, | | GList *polkit_backend_authority_enumerate_groups (PolkitBackendA
uthority *authority, | |
| PolkitSubject
*caller, | | PolkitSubject
*caller, | |
| 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, | |
| PolkitCheckAut
horizationFlags flags, | | PolkitCheckAut
horizationFlags flags, | |
| GCancellable
*cancellable, | | GCancellable
*cancellable, | |
| GAsyncReadyCal
lback callback, | | GAsyncReadyCal
lback callback, | |
| gpointer
user_data); | | gpointer
user_data); | |
| | | | |
|
| PolkitAuthorizationResult polkit_backend_authority_check_authorization_fini | | PolkitAuthorizationResult *polkit_backend_authority_check_authorization_fin | |
| sh (PolkitBackendAuthority *authority, | | ish (PolkitBackendAuthority *authority, | |
| | | | |
| GAsyncResult *res, | | GAsyncResult *res, | |
| | | | |
| GError **error); | | GError **error); | |
| | | | |
| void polkit_backend_authority_obtain_authorization (PolkitBackendA | | | |
| uthority *authority, | | | |
| PolkitSubject | | | |
| *caller, | | | |
| PolkitSubject | | | |
| *subject, | | | |
| const gchar | | | |
| *action_id, | | | |
| GCancellable | | | |
| *cancellable, | | | |
| GAsyncReadyCal | | | |
| lback callback, | | | |
| gpointer | | | |
| user_data); | | | |
| | | | |
| gboolean polkit_backend_authority_obtain_authorization_finish (PolkitBacken | | | |
| dAuthority *authority, | | | |
| GAsyncResult | | | |
| *res, | | | |
| GError | | | |
| **error); | | | |
| | | | |
| GList *polkit_backend_authority_enumerate_authorizations (PolkitBackendA
uthority *authority, | | GList *polkit_backend_authority_enumerate_authorizations (PolkitBackendA
uthority *authority, | |
| PolkitSubject
*caller, | | PolkitSubject
*caller, | |
| PolkitIdentity
*identity, | | PolkitIdentity
*identity, | |
| GError
**error); | | GError
**error); | |
| | | | |
| gboolean polkit_backend_authority_add_authorization (PolkitBackendA
uthority *authority, | | gboolean polkit_backend_authority_add_authorization (PolkitBackendA
uthority *authority, | |
| PolkitSubject
*caller, | | PolkitSubject
*caller, | |
| PolkitIdentity
*identity, | | PolkitIdentity
*identity, | |
| PolkitAuthoriz
ation *authorization, | | PolkitAuthoriz
ation *authorization, | |
| | | | |
| skipping to change at line 282 | | skipping to change at line 254 | |
| | | | |
| gboolean polkit_backend_authority_remove_authorization (PolkitBackendA
uthority *authority, | | gboolean polkit_backend_authority_remove_authorization (PolkitBackendA
uthority *authority, | |
| PolkitSubject
*caller, | | PolkitSubject
*caller, | |
| PolkitIdentity
*identity, | | PolkitIdentity
*identity, | |
| PolkitAuthoriz
ation *authorization, | | PolkitAuthoriz
ation *authorization, | |
| GError
**error); | | GError
**error); | |
| | | | |
| gboolean polkit_backend_authority_register_authentication_agent (PolkitBack
endAuthority *authority, | | gboolean polkit_backend_authority_register_authentication_agent (PolkitBack
endAuthority *authority, | |
| PolkitSubj
ect *caller, | | PolkitSubj
ect *caller, | |
| const gcha
r *session_id, | | const gcha
r *session_id, | |
|
| | | const gcha
r *locale, | |
| const gcha
r *object_path, | | const gcha
r *object_path, | |
| GError
**error); | | GError
**error); | |
| | | | |
| gboolean polkit_backend_authority_unregister_authentication_agent (PolkitBa
ckendAuthority *authority, | | gboolean polkit_backend_authority_unregister_authentication_agent (PolkitBa
ckendAuthority *authority, | |
| PolkitSu
bject *caller, | | PolkitSu
bject *caller, | |
| const gc
har *session_id, | | const gc
har *session_id, | |
| const gc
har *object_path, | | const gc
har *object_path, | |
| GError
**error); | | GError
**error); | |
| | | | |
| gboolean polkit_backend_authority_authentication_agent_response (PolkitBack
endAuthority *authority, | | gboolean polkit_backend_authority_authentication_agent_response (PolkitBack
endAuthority *authority, | |
| | | | |
End of changes. 7 change blocks. |
| 54 lines changed or deleted | | 16 lines changed or added | |
|
| polkitidentity.h | | polkitidentity.h | |
| | | | |
| skipping to change at line 41 | | skipping to change at line 41 | |
| #include <polkit/polkittypes.h> | | #include <polkit/polkittypes.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define POLKIT_TYPE_IDENTITY (polkit_identity_get_type()) | | #define POLKIT_TYPE_IDENTITY (polkit_identity_get_type()) | |
| #define POLKIT_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLK
IT_TYPE_IDENTITY, PolkitIdentity)) | | #define POLKIT_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLK
IT_TYPE_IDENTITY, PolkitIdentity)) | |
| #define POLKIT_IS_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLK
IT_TYPE_IDENTITY)) | | #define POLKIT_IS_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLK
IT_TYPE_IDENTITY)) | |
| #define POLKIT_IDENTITY_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), PO
LKIT_TYPE_IDENTITY, PolkitIdentityIface)) | | #define POLKIT_IDENTITY_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), PO
LKIT_TYPE_IDENTITY, PolkitIdentityIface)) | |
| | | | |
| #if 0 | | #if 0 | |
|
| | | /** | |
| | | * PolkitIdentity: | |
| | | * | |
| | | * Generic type for all objects that can be used as identities. | |
| | | */ | |
| typedef struct _PolkitIdentity PolkitIdentity; /* Dummy typedef */ | | typedef struct _PolkitIdentity PolkitIdentity; /* Dummy typedef */ | |
| #endif | | #endif | |
| typedef struct _PolkitIdentityIface PolkitIdentityIface; | | typedef struct _PolkitIdentityIface PolkitIdentityIface; | |
| | | | |
|
| | | /** | |
| | | * PolkitIdentityIface: | |
| | | * @parent_iface: The parent interface. | |
| | | * @hash: Gets a hash value for a #PolkitIdentity. | |
| | | * @equal: Checks if two #PolkitIdentity<!-- -->s are equal. | |
| | | * @to_string: Serializes a #PolkitIdentity to a string that can be | |
| | | * used in polkit_identity_from_string(). | |
| | | * | |
| | | * An interface for identities. | |
| | | */ | |
| struct _PolkitIdentityIface | | struct _PolkitIdentityIface | |
| { | | { | |
| GTypeInterface parent_iface; | | GTypeInterface parent_iface; | |
| | | | |
| guint (*hash) (PolkitIdentity *identity); | | guint (*hash) (PolkitIdentity *identity); | |
| | | | |
| gboolean (*equal) (PolkitIdentity *a, | | gboolean (*equal) (PolkitIdentity *a, | |
| PolkitIdentity *b); | | PolkitIdentity *b); | |
| | | | |
| gchar * (*to_string) (PolkitIdentity *identity); | | gchar * (*to_string) (PolkitIdentity *identity); | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 15 lines changed or added | |
|
| polkitprivate.h | | polkitprivate.h | |
| | | | |
| skipping to change at line 28 | | skipping to change at line 28 | |
| * | | * | |
| * Author: David Zeuthen <davidz@redhat.com> | | * Author: David Zeuthen <davidz@redhat.com> | |
| */ | | */ | |
| | | | |
| #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 "_polkitbindings.h" | | #include "_polkitbindings.h" | |
| | | | |
| /* notes: | | /* notes: | |
| * | | * | |
| * - the _new_for_real() functions will ref the passed arg (you will still
own the ref) | | * - the _new_for_real() functions will ref the passed arg (you will still
own the ref) | |
| * - the _get_real() functions will return a ref (you will own the ref) | | * - the _get_real() functions will return a ref (you will own the ref) | |
| * | | * | |
| */ | | */ | |
| | | | |
| PolkitActionDescription *polkit_action_description_new_for_real (_PolkitAc
tionDescription *real); | | PolkitActionDescription *polkit_action_description_new_for_real (_PolkitAc
tionDescription *real); | |
| | | | |
| skipping to change at line 49 | | skipping to change at line 50 | |
| | | | |
| PolkitSubject *polkit_subject_new_for_real (_PolkitSubject *real); | | PolkitSubject *polkit_subject_new_for_real (_PolkitSubject *real); | |
| _PolkitSubject *polkit_subject_get_real (PolkitSubject *subject); | | _PolkitSubject *polkit_subject_get_real (PolkitSubject *subject); | |
| | | | |
| PolkitIdentity *polkit_identity_new_for_real (_PolkitIdentity *real); | | PolkitIdentity *polkit_identity_new_for_real (_PolkitIdentity *real); | |
| _PolkitIdentity *polkit_identity_get_real (PolkitIdentity *identity); | | _PolkitIdentity *polkit_identity_get_real (PolkitIdentity *identity); | |
| | | | |
| PolkitAuthorization *polkit_authorization_new_for_real (_PolkitAuthorizati
on *real); | | PolkitAuthorization *polkit_authorization_new_for_real (_PolkitAuthorizati
on *real); | |
| _PolkitAuthorization *polkit_authorization_get_real (PolkitAuthorizatio
n *authorization); | | _PolkitAuthorization *polkit_authorization_get_real (PolkitAuthorizatio
n *authorization); | |
| | | | |
|
| | | PolkitAuthorizationResult *polkit_authorization_result_new_for_real (_Polk | |
| | | itAuthorizationResult *real); | |
| | | _PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAut | |
| | | horizationResult *authorization_result); | |
| | | | |
| | | PolkitDetails *polkit_details_new_for_hash (GHashTable *hash); | |
| | | GHashTable *polkit_details_get_hash (PolkitDetails *details); | |
| | | | |
| #endif /* __POLKIT_PRIVATE_H */ | | #endif /* __POLKIT_PRIVATE_H */ | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 9 lines changed or added | |
|
| polkitsubject.h | | polkitsubject.h | |
| | | | |
| skipping to change at line 41 | | skipping to change at line 41 | |
| #include <polkit/polkittypes.h> | | #include <polkit/polkittypes.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define POLKIT_TYPE_SUBJECT (polkit_subject_get_type()) | | #define POLKIT_TYPE_SUBJECT (polkit_subject_get_type()) | |
| #define POLKIT_SUBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKI
T_TYPE_SUBJECT, PolkitSubject)) | | #define POLKIT_SUBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKI
T_TYPE_SUBJECT, PolkitSubject)) | |
| #define POLKIT_IS_SUBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKI
T_TYPE_SUBJECT)) | | #define POLKIT_IS_SUBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKI
T_TYPE_SUBJECT)) | |
| #define POLKIT_SUBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), POL
KIT_TYPE_SUBJECT, PolkitSubjectIface)) | | #define POLKIT_SUBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), POL
KIT_TYPE_SUBJECT, PolkitSubjectIface)) | |
| | | | |
| #if 0 | | #if 0 | |
|
| | | /** | |
| | | * PolkitSubject: | |
| | | * | |
| | | * Generic type for all objects that can be used as subjects. | |
| | | */ | |
| typedef struct _PolkitSubject PolkitSubject; /* Dummy typedef */ | | typedef struct _PolkitSubject PolkitSubject; /* Dummy typedef */ | |
| #endif | | #endif | |
| typedef struct _PolkitSubjectIface PolkitSubjectIface; | | typedef struct _PolkitSubjectIface PolkitSubjectIface; | |
| | | | |
|
| | | /** | |
| | | * PolkitSubjectIface: | |
| | | * @parent_iface: The parent interface. | |
| | | * @hash: Gets a hash value for a #PolkitSubject. | |
| | | * @equal: Checks if two #PolkitSubject<!-- -->s are equal. | |
| | | * @to_string: Serializes a #PolkitSubject to a string that can be | |
| | | * used in polkit_subject_from_string(). | |
| | | * | |
| | | * An interface for subjects. | |
| | | */ | |
| struct _PolkitSubjectIface | | struct _PolkitSubjectIface | |
| { | | { | |
| GTypeInterface parent_iface; | | GTypeInterface parent_iface; | |
| | | | |
| guint (*hash) (PolkitSubject *subject); | | guint (*hash) (PolkitSubject *subject); | |
| | | | |
| gboolean (*equal) (PolkitSubject *a, | | gboolean (*equal) (PolkitSubject *a, | |
| PolkitSubject *b); | | PolkitSubject *b); | |
| | | | |
| gchar * (*to_string) (PolkitSubject *subject); | | gchar * (*to_string) (PolkitSubject *subject); | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 15 lines changed or added | |
|