polkit.h   polkit.h 
skipping to change at line 40 skipping to change at line 40
#include <polkit/polkitidentity.h> #include <polkit/polkitidentity.h>
#include <polkit/polkitunixuser.h> #include <polkit/polkitunixuser.h>
#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/polkitauthoritymanager.h>
#include <polkit/polkitauthorization.h>
#include <polkit/polkitdetails.h> #include <polkit/polkitdetails.h>
#include <polkit/polkittemporaryauthorization.h>
#undef _POLKIT_INSIDE_POLKIT_H #undef _POLKIT_INSIDE_POLKIT_H
#endif /* __POLKIT_H */ #endif /* __POLKIT_H */
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added


 polkitagentlistener.h   polkitagentlistener.h 
skipping to change at line 106 skipping to change at line 107
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 *message,
const gcha r *icon_name, const gcha r *icon_name,
PolkitDeta ils *details, 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 gboolean polkit_agent_register_listener (PolkitAgen
entListener *listener, tListener *listener,
const gc PolkitSubj
har *session_id, ect *subject,
const gc const gcha
har *object_path, r *object_path,
GError GError
**error); **error);
G_END_DECLS G_END_DECLS
#endif /* __POLKIT_AGENT_LISTENER_H */ #endif /* __POLKIT_AGENT_LISTENER_H */
 End of changes. 2 change blocks. 
8 lines changed or deleted 9 lines changed or added


 polkitauthority.h   polkitauthority.h 
skipping to change at line 74 skipping to change at line 74
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 tDetails *details,
Polki tCheckAuthorizationFlags flags, Polki tCheckAuthorizationFlags flags,
GCanc ellable *cancellable, GCanc ellable *cancellable,
GErro r **error); GErro r **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, PolkitSubject *subject,
const gchar *locale, 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, PolkitSubject *subject,
const gchar *object_path, const gchar *object_path,
GCancellable *cancellable, GCancellable *cancellable,
GError **error); GError **error);
gboolean polkit_authority_authentication_agent_response_s ync (PolkitAuthority *authority, gboolean polkit_authority_authentication_agent_response_s ync (PolkitAuthority *authority,
const gchar *cookie, const gchar *cookie,
PolkitIdentity *identity, PolkitIdentity *identity,
GCancellable *cancellable, GCancellable *cancellable,
GError **error); GError **error);
GList *polkit_authority_enumerate_temporary_authorizati
ons_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 (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 117 skipping to change at line 127
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_register_authentication_agent ( PolkitAuthority *authority, void polkit_authority_register_authentication_agent ( PolkitAuthority *authority,
const gchar *session_id, PolkitSubject *subject,
const gchar *locale, 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,
const gchar *session_id, PolkitSubject *subject,
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_unregister_authentication_agent _finish (PolkitAuthority *authority, gboolean polkit_authority_unregister_authentication_agent _finish (PolkitAuthority *authority,
GAsyncResult *res, GAsyncResult *res,
GError **error); GError **error);
void polkit_authority_authentication_agent_response ( PolkitAuthority *authority, void polkit_authority_authentication_agent_response ( PolkitAuthority *authority,
const gchar *cookie, const gchar *cookie,
PolkitIdentity *identity, PolkitIdentity *identity,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
gboolean polkit_authority_authentication_agent_response_f inish (PolkitAuthority *authority, gboolean polkit_authority_authentication_agent_response_f inish (PolkitAuthority *authority,
GAsyncResult *res, GAsyncResult *res,
GError **error); GError **error);
void polkit_authority_enumerate_temporary_authorizati
ons (PolkitAuthority *authority,
PolkitSubject *subject,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GList *polkit_authority_enumerate_temporary_authorizati
ons_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 G_END_DECLS
#endif /* __POLKIT_AUTHORITY_H */ #endif /* __POLKIT_AUTHORITY_H */
 End of changes. 6 change blocks. 
4 lines changed or deleted 58 lines changed or added


 polkitbackend.h   polkitbackend.h 
skipping to change at line 34 skipping to change at line 34
#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/polkitbackendlocalauthority.h> #include <polkitbackend/polkitbackendlocalauthority.h>
#include <polkitbackend/polkitbackendactionpool.h> #include <polkitbackend/polkitbackendactionpool.h>
#include <polkitbackend/polkitbackendsessionmonitor.h> #include <polkitbackend/polkitbackendsessionmonitor.h>
#include <polkitbackend/polkitbackendconfigsource.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. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added


 polkitbackendauthority.h   polkitbackendauthority.h 
skipping to change at line 88 skipping to change at line 89
* @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.
* @authentication_agent_response: Called by an authentication agent * @authentication_agent_response: Called by an authentication agent
* when the user successfully authenticates or %NULL if the backend * when the user successfully authenticates or %NULL if the backend
* doesn't support the operation. See * doesn't support the operation. See
* polkit_backend_authority_authentication_agent_response() for * polkit_backend_authority_authentication_agent_response() for
* details. * details.
* @enumerate_users: Enumerates users on the system or %NULL if the * @enumerate_temporary_authorizations: Called to enumerate temporary
* backend doesn't support the operation. See * authorizations or %NULL if the backend doesn't support the operation.
* polkit_backend_authority_enumerate_users() for details. * See polkit_backend_authority_enumerate_temporary_authorizations()
* @enumerate_groups: Enumerates groups on the system or %NULL if the * for details.
* backend doesn't support the operation. See * @revoke_temporary_authorizations: Called to revoke temporary
* polkit_backend_authority_enumerate_groups() for details. * authorizations or %NULL if the backend doesn't support the operation.
* @enumerate_authorizations: Enumerates authorizations for a given * See polkit_backend_authority_revoke_temporary_authorizations()
* identity or %NULL if the backend doesn't support the operation. See * for details.
* polkit_backend_authority_enumerate_authorizations() for details.
* @add_authorization: Add an authorization to a given identity or
* %NULL if the backend doesn't support the operation. See
* polkit_backend_authority_add_authorization() for details.
* @remove_authorization: Remove an authorization for a given identity
* or %NULL if the backend doesn't support the operation. See
* polkit_backend_authority_remove_authorization() for details.
* @system_bus_name_owner_changed: temporary VFunc, to be removed before 1. 0. * @system_bus_name_owner_changed: temporary VFunc, to be removed before 1. 0.
* *
* 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 */
skipping to change at line 138 skipping to change at line 132
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
PolkitAuthorizationResult * (*check_authorization_finish) (PolkitBackendA uthority *authority, PolkitAuthorizationResult * (*check_authorization_finish) (PolkitBackendA uthority *authority,
GAsyncResult *res, GAsyncResult *res,
GError **error); 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, PolkitSubject *subj ect,
const gchar *loca le, 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, PolkitSubject *su bject,
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,
PolkitSubject *call er, PolkitSubject *call er,
const gchar *cook ie, const gchar *cook ie,
PolkitIdentity *iden tity, PolkitIdentity *iden tity,
GError **erro r); GError **erro r);
GList *(*enumerate_users) (PolkitBackendAuthority *authority, GList *(*enumerate_temporary_authorizations) (PolkitBackendAuthority *a
PolkitSubject *caller, uthority,
GError **error); PolkitSubject *c
aller,
GList *(*enumerate_groups) (PolkitBackendAuthority *authority, PolkitSubject *s
PolkitSubject *caller, ubject,
GError **error); GError **e
rror);
GList *(*enumerate_authorizations) (PolkitBackendAuthority *authority,
PolkitSubject *caller,
PolkitIdentity *identity,
GError **error);
gboolean (*add_authorization) (PolkitBackendAuthority *authority,
PolkitSubject *caller,
PolkitIdentity *identity,
PolkitAuthorization *authorization,
GError **error);
gboolean (*remove_authorization) (PolkitBackendAuthority *authority, gboolean (*revoke_temporary_authorizations) (PolkitBackendAuthority *au
PolkitSubject *caller, thority,
PolkitIdentity *identity, PolkitSubject *ca
PolkitAuthorization *authorization ller,
, PolkitSubject *su
GError **error); bject,
GError **er
ror);
/* TODO: need something more efficient such that we don't watch all name changes */ /* TODO: need something more efficient such that we don't watch all name changes */
void (*system_bus_name_owner_changed) (PolkitBackendAuthority *authori ty, void (*system_bus_name_owner_changed) (PolkitBackendAuthority *authori ty,
const gchar *name, const gchar *name,
const gchar *old_own er, const gchar *old_own er,
const gchar *new_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);
void (*_polkit_reserved9) (void);
void (*_polkit_reserved10) (void);
void (*_polkit_reserved11) (void);
void (*_polkit_reserved12) (void);
void (*_polkit_reserved13) (void);
void (*_polkit_reserved14) (void);
void (*_polkit_reserved15) (void);
void (*_polkit_reserved16) (void);
void (*_polkit_reserved17) (void);
void (*_polkit_reserved18) (void);
void (*_polkit_reserved19) (void);
void (*_polkit_reserved20) (void);
void (*_polkit_reserved21) (void);
void (*_polkit_reserved22) (void);
void (*_polkit_reserved23) (void);
void (*_polkit_reserved24) (void);
void (*_polkit_reserved25) (void);
void (*_polkit_reserved26) (void);
void (*_polkit_reserved27) (void);
void (*_polkit_reserved28) (void);
void (*_polkit_reserved29) (void);
void (*_polkit_reserved30) (void);
void (*_polkit_reserved31) (void);
void (*_polkit_reserved32) (void);
}; };
GType polkit_backend_authority_get_type (void) G_GNUC_CONST; GType polkit_backend_authority_get_type (void) G_GNUC_CONST;
/* --- */ /* --- */
void polkit_backend_authority_system_bus_name_owner_changed (PolkitBack endAuthority *authority, void polkit_backend_authority_system_bus_name_owner_changed (PolkitBack endAuthority *authority,
const gcha r *name, const gcha r *name,
const gcha r *old_owner, const gcha r *old_owner,
const gcha r *new_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);
GList *polkit_backend_authority_enumerate_users (PolkitBackendA
uthority *authority,
PolkitSubject
*caller,
GError
**error);
GList *polkit_backend_authority_enumerate_groups (PolkitBackendA
uthority *authority,
PolkitSubject
*caller,
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,
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_fin ish (PolkitBackendAuthority *authority, PolkitAuthorizationResult *polkit_backend_authority_check_authorization_fin ish (PolkitBackendAuthority *authority,
GAsyncResult *res, GAsyncResult *res,
GError **error); GError **error);
GList *polkit_backend_authority_enumerate_authorizations (PolkitBackendA
uthority *authority,
PolkitSubject
*caller,
PolkitIdentity
*identity,
GError
**error);
gboolean polkit_backend_authority_add_authorization (PolkitBackendA
uthority *authority,
PolkitSubject
*caller,
PolkitIdentity
*identity,
PolkitAuthoriz
ation *authorization,
GError
**error);
gboolean polkit_backend_authority_remove_authorization (PolkitBackendA
uthority *authority,
PolkitSubject
*caller,
PolkitIdentity
*identity,
PolkitAuthoriz
ation *authorization,
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, PolkitSubj ect *subject,
const gcha r *locale, 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, PolkitSu bject *subject,
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,
PolkitSubj ect *caller, PolkitSubj ect *caller,
const gcha r *cookie, const gcha r *cookie,
PolkitIden tity *identity, PolkitIden tity *identity,
GError **error); GError **error);
GList *polkit_backend_authority_enumerate_temporary_authorizations (PolkitB
ackendAuthority *authority,
PolkitS
ubject *caller,
PolkitS
ubject *subject,
GError
**error);
gboolean polkit_backend_authority_revoke_temporary_authorizations (PolkitBa
ckendAuthority *authority,
PolkitSu
bject *caller,
PolkitSu
bject *subject,
GError
**error);
/* --- */ /* --- */
PolkitBackendAuthority *polkit_backend_authority_get (void); PolkitBackendAuthority *polkit_backend_authority_get (void);
gboolean polkit_backend_register_authority (PolkitBackendAuthority *autho rity, gboolean polkit_backend_register_authority (PolkitBackendAuthority *autho rity,
const gchar *well_ known_name, const gchar *well_ known_name,
const gchar *objec t_path, const gchar *objec t_path,
GError **error ); GError **error );
G_END_DECLS G_END_DECLS
 End of changes. 11 change blocks. 
88 lines changed or deleted 70 lines changed or added


 polkitbackendlocalauthority.h   polkitbackendlocalauthority.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_LOCAL_AUTHORITY_H #ifndef __POLKIT_BACKEND_LOCAL_AUTHORITY_H
#define __POLKIT_BACKEND_LOCAL_AUTHORITY_H #define __POLKIT_BACKEND_LOCAL_AUTHORITY_H
#include <glib-object.h> #include <glib-object.h>
#include <polkitbackend/polkitbackendtypes.h> #include <polkitbackend/polkitbackendtypes.h>
#include <polkitbackend/polkitbackendauthority.h> #include <polkitbackend/polkitbackendinteractiveauthority.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY (polkit_backend_local_a uthority_get_type ()) #define POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY (polkit_backend_local_a uthority_get_type ())
#define POLKIT_BACKEND_LOCAL_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_ CAST ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY, PolkitBackendLocalAuthority )) #define POLKIT_BACKEND_LOCAL_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_ CAST ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY, PolkitBackendLocalAuthority ))
#define POLKIT_BACKEND_LOCAL_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_CAS T ((k), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY, PolkitBackendLocalAuthorityCla ss)) #define POLKIT_BACKEND_LOCAL_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_CAS T ((k), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY, PolkitBackendLocalAuthorityCla ss))
#define POLKIT_BACKEND_LOCAL_AUTHORITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CL ASS ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY,PolkitBackendLocalAuthorityCl ass)) #define POLKIT_BACKEND_LOCAL_AUTHORITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CL ASS ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY,PolkitBackendLocalAuthorityCl ass))
#define POLKIT_BACKEND_IS_LOCAL_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_ TYPE ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY)) #define POLKIT_BACKEND_IS_LOCAL_AUTHORITY(o) (G_TYPE_CHECK_INSTANCE_ TYPE ((o), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY))
#define POLKIT_BACKEND_IS_LOCAL_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYP E ((k), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY)) #define POLKIT_BACKEND_IS_LOCAL_AUTHORITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYP E ((k), POLKIT_BACKEND_TYPE_LOCAL_AUTHORITY))
typedef struct _PolkitBackendLocalAuthorityClass PolkitBackendLocalAutho rityClass; typedef struct _PolkitBackendLocalAuthorityClass PolkitBackendLocalAutho rityClass;
/** /**
* PolkitBackendLocalAuthority: * PolkitBackendLocalAuthority:
* *
* The #PolkitBackendLocalAuthority struct should not be accessed directly. * The #PolkitBackendLocalAuthority struct should not be accessed directly.
*/ */
struct _PolkitBackendLocalAuthority struct _PolkitBackendLocalAuthority
{ {
/*< private >*/ /*< private >*/
PolkitBackendAuthority parent_instance; PolkitBackendInteractiveAuthority parent_instance;
}; };
/** /**
* PolkitBackendLocalAuthorityClass: * PolkitBackendLocalAuthorityClass:
* @parent_class: The parent class. * @parent_class: The parent class.
* *
* Class structure for #PolkitBackendLocalAuthority. * Class structure for #PolkitBackendLocalAuthority.
*/ */
struct _PolkitBackendLocalAuthorityClass struct _PolkitBackendLocalAuthorityClass
{ {
/*< public >*/ /*< public >*/
PolkitBackendAuthorityClass parent_class; PolkitBackendInteractiveAuthorityClass parent_class;
/*< 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);
void (*_polkit_reserved9) (void);
void (*_polkit_reserved10) (void);
void (*_polkit_reserved11) (void);
void (*_polkit_reserved12) (void);
void (*_polkit_reserved13) (void);
void (*_polkit_reserved14) (void);
void (*_polkit_reserved15) (void);
void (*_polkit_reserved16) (void);
void (*_polkit_reserved17) (void);
void (*_polkit_reserved18) (void);
void (*_polkit_reserved19) (void);
void (*_polkit_reserved20) (void);
void (*_polkit_reserved21) (void);
void (*_polkit_reserved22) (void);
void (*_polkit_reserved23) (void);
void (*_polkit_reserved24) (void);
void (*_polkit_reserved25) (void);
void (*_polkit_reserved26) (void);
void (*_polkit_reserved27) (void);
void (*_polkit_reserved28) (void);
void (*_polkit_reserved29) (void);
void (*_polkit_reserved30) (void);
void (*_polkit_reserved31) (void);
void (*_polkit_reserved32) (void);
}; };
GType polkit_backend_local_authority_get_type (void) G_GN UC_CONST; GType polkit_backend_local_authority_get_type (void) G_GN UC_CONST;
PolkitBackendAuthority *polkit_backend_local_authority_new (void);
G_END_DECLS G_END_DECLS
#endif /* __POLKIT_BACKEND_LOCAL_AUTHORITY_H */ #endif /* __POLKIT_BACKEND_LOCAL_AUTHORITY_H */
 End of changes. 5 change blocks. 
4 lines changed or deleted 27 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 _PolkitBackendAuthority;
typedef struct _PolkitBackendAuthority PolkitBackendAuthority;
struct _PolkitBackendLocalAuthority;
typedef struct _PolkitBackendLocalAuthority PolkitBackendLocalAuthority;
struct _PolkitBackendSessionMonitor; struct _PolkitBackendSessionMonitor;
typedef struct _PolkitBackendSessionMonitor PolkitBackendSessionMonitor; typedef struct _PolkitBackendSessionMonitor PolkitBackendSessionMonitor;
struct _PolkitBackendConfigSource; struct _PolkitBackendConfigSource;
typedef struct _PolkitBackendConfigSource 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;
typedef struct _PolkitBackendAuthority PolkitBackendAuthority;
struct _PolkitBackendInteractiveAuthority;
typedef struct _PolkitBackendInteractiveAuthority PolkitBackendInteractiveA
uthority;
struct _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. 
6 lines changed or deleted 14 lines changed or added


 polkitimplicitauthorization.h   polkitimplicitauthorization.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
GType polkit_implicit_authorization_get_type (void) G_GNUC_CONST; GType polkit_implicit_authorization_get_type (void) G_GNUC_CONST;
#define POLKIT_TYPE_IMPLICIT_AUTHORIZATION (polkit_implicit_authorization_g et_type ()) #define POLKIT_TYPE_IMPLICIT_AUTHORIZATION (polkit_implicit_authorization_g et_type ())
/** /**
* PolkitImplicitAuthorization: * PolkitImplicitAuthorization:
* @POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN: Unknown whether the subject is a uthorized, never returned in any public API.
* @POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED: Subject is not authorized . * @POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED: Subject is not authorized .
* @POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED: Authentication i s required. * @POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED: Authentication i s required.
* @POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED: Au thentication as an administrator is required. * @POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED: Au thentication as an administrator is required.
* @POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED: Authent ication is required. If the authorization is obtained, it is retained. * @POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED: Authent ication is required. If the authorization is obtained, it is retained.
* @POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RET AINED: Authentication as an administrator is required. If the authorization is obtained, it is retained. * @POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RET AINED: Authentication as an administrator is required. If the authorization is obtained, it is retained.
* @POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED: The subject is authorized * @POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED: The subject is authorized
* *
* Possible implicit authorizations. * Possible implicit authorizations.
*/ */
typedef enum typedef enum
{ {
POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN = -1,
POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED = 0, POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED = 0,
POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED = 1, POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED = 1,
POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED = 2, POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED = 2,
POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED = 3, POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED = 3,
POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAI NED = 4, POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAI NED = 4,
POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED = 5, POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED = 5,
} PolkitImplicitAuthorization; } PolkitImplicitAuthorization;
const gchar *polkit_implicit_authorization_to_string (Pol kitImplicitAuthorization implicit_authorization); const gchar *polkit_implicit_authorization_to_string (Pol kitImplicitAuthorization implicit_authorization);
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added


 polkitprivate.h   polkitprivate.h 
skipping to change at line 29 skipping to change at line 29
* 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 "polkitauthorizationresult.h"
#include "polkittemporaryauthorization.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);
_PolkitActionDescription *polkit_action_description_get_real (PolkitAct ionDescription *action_description); _PolkitActionDescription *polkit_action_description_get_real (PolkitAct ionDescription *action_description);
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_get_real (PolkitAuthorizatio
n *authorization);
PolkitAuthorizationResult *polkit_authorization_result_new_for_real (_Polk itAuthorizationResult *real); PolkitAuthorizationResult *polkit_authorization_result_new_for_real (_Polk itAuthorizationResult *real);
_PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAut horizationResult *authorization_result); _PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAut horizationResult *authorization_result);
_PolkitTemporaryAuthorization *polkit_temporary_authorization_get_real (Pol
kitTemporaryAuthorization *authorization);
PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_real (
_PolkitTemporaryAuthorization *real);
PolkitDetails *polkit_details_new_for_hash (GHashTable *hash); PolkitDetails *polkit_details_new_for_hash (GHashTable *hash);
GHashTable *polkit_details_get_hash (PolkitDetails *details); GHashTable *polkit_details_get_hash (PolkitDetails *details);
#endif /* __POLKIT_PRIVATE_H */ #endif /* __POLKIT_PRIVATE_H */
 End of changes. 3 change blocks. 
5 lines changed or deleted 6 lines changed or added


 polkitsubject.h   polkitsubject.h 
skipping to change at line 57 skipping to change at line 57
#endif #endif
typedef struct _PolkitSubjectIface PolkitSubjectIface; typedef struct _PolkitSubjectIface PolkitSubjectIface;
/** /**
* PolkitSubjectIface: * PolkitSubjectIface:
* @parent_iface: The parent interface. * @parent_iface: The parent interface.
* @hash: Gets a hash value for a #PolkitSubject. * @hash: Gets a hash value for a #PolkitSubject.
* @equal: Checks if two #PolkitSubject<!-- -->s are equal. * @equal: Checks if two #PolkitSubject<!-- -->s are equal.
* @to_string: Serializes a #PolkitSubject to a string that can be * @to_string: Serializes a #PolkitSubject to a string that can be
* used in polkit_subject_from_string(). * used in polkit_subject_from_string().
* @exists: Asynchronously check if a #PolkitSubject exists.
* @exists_finish: Finishes checking if a #PolkitSubject exists.
* @exists_sync: Synchronously check if a #PolkitSubject exists.
* *
* An interface for subjects. * 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);
void (*exists) (PolkitSubject *subject,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*exists_finish) (PolkitSubject *subject,
GAsyncResult *res,
GError **error);
gboolean (*exists_sync) (PolkitSubject *subject,
GCancellable *cancellable,
GError **error);
}; };
GType polkit_subject_get_type (void) G_GNUC_CONST; GType polkit_subject_get_type (void) G_GNUC_CONST;
guint polkit_subject_hash (PolkitSubject *subject); guint polkit_subject_hash (PolkitSubject *subject);
gboolean polkit_subject_equal (PolkitSubject *a, gboolean polkit_subject_equal (PolkitSubject *a,
PolkitSubject *b); PolkitSubject *b);
gchar *polkit_subject_to_string (PolkitSubject *subject); gchar *polkit_subject_to_string (PolkitSubject *subject);
PolkitSubject *polkit_subject_from_string (const gchar *str, PolkitSubject *polkit_subject_from_string (const gchar *str,
GError **error); GError **error);
void polkit_subject_exists (PolkitSubject *subject,
GCancellable *cancellab
le,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean polkit_subject_exists_finish (PolkitSubject *subject,
GAsyncResult *res,
GError **error);
gboolean polkit_subject_exists_sync (PolkitSubject *subject,
GCancellable *cancellab
le,
GError **error);
G_END_DECLS G_END_DECLS
#endif /* __POLKIT_SUBJECT_H */ #endif /* __POLKIT_SUBJECT_H */
 End of changes. 5 change blocks. 
11 lines changed or deleted 40 lines changed or added


 polkittypes.h   polkittypes.h 
skipping to change at line 30 skipping to change at line 30
*/ */
#ifndef __POLKIT_TYPES_H #ifndef __POLKIT_TYPES_H
#define __POLKIT_TYPES_H #define __POLKIT_TYPES_H
#include <glib-object.h> #include <glib-object.h>
struct _PolkitAuthority; struct _PolkitAuthority;
typedef struct _PolkitAuthority PolkitAuthority; typedef struct _PolkitAuthority PolkitAuthority;
struct _PolkitAuthorityManager;
typedef struct _PolkitAuthorityManager PolkitAuthorityManager;
struct _PolkitActionDescription; struct _PolkitActionDescription;
typedef struct _PolkitActionDescription PolkitActionDescription; typedef struct _PolkitActionDescription PolkitActionDescription;
typedef struct _PolkitSubject PolkitSubject; /* Dummy typedef */ typedef struct _PolkitSubject PolkitSubject; /* Dummy typedef */
struct _PolkitUnixProcess; struct _PolkitUnixProcess;
typedef struct _PolkitUnixProcess PolkitUnixProcess; typedef struct _PolkitUnixProcess PolkitUnixProcess;
struct _PolkitUnixSession; struct _PolkitUnixSession;
typedef struct _PolkitUnixSession PolkitUnixSession; typedef struct _PolkitUnixSession PolkitUnixSession;
skipping to change at line 55 skipping to change at line 52
typedef struct _PolkitSystemBusName PolkitSystemBusName; typedef struct _PolkitSystemBusName PolkitSystemBusName;
typedef struct _PolkitIdentity PolkitIdentity; /* Dummy typedef */ typedef struct _PolkitIdentity PolkitIdentity; /* Dummy typedef */
struct _PolkitUnixUser; struct _PolkitUnixUser;
typedef struct _PolkitUnixUser PolkitUnixUser; typedef struct _PolkitUnixUser PolkitUnixUser;
struct _PolkitUnixGroup; struct _PolkitUnixGroup;
typedef struct _PolkitUnixGroup PolkitUnixGroup; typedef struct _PolkitUnixGroup PolkitUnixGroup;
struct _PolkitAuthorization;
typedef struct _PolkitAuthorization PolkitAuthorization;
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;
typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization;
#endif /* __POLKIT_TYPES_H */ #endif /* __POLKIT_TYPES_H */
 End of changes. 3 change blocks. 
6 lines changed or deleted 3 lines changed or added


 polkitunixsession.h   polkitunixsession.h 
skipping to change at line 47 skipping to change at line 47
#define POLKIT_UNIX_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POL KIT_TYPE_UNIX_SESSION, PolkitUnixSessionClass)) #define POLKIT_UNIX_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POL KIT_TYPE_UNIX_SESSION, PolkitUnixSessionClass))
#define POLKIT_UNIX_SESSION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_UNIX_SESSION, PolkitUnixSessionClass)) #define POLKIT_UNIX_SESSION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_UNIX_SESSION, PolkitUnixSessionClass))
#define POLKIT_IS_UNIX_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_UNIX_SESSION)) #define POLKIT_IS_UNIX_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_UNIX_SESSION))
#define POLKIT_IS_UNIX_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PO LKIT_TYPE_UNIX_SESSION)) #define POLKIT_IS_UNIX_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PO LKIT_TYPE_UNIX_SESSION))
#if 0 #if 0
typedef struct _PolkitUnixSession PolkitUnixSession; typedef struct _PolkitUnixSession PolkitUnixSession;
#endif #endif
typedef struct _PolkitUnixSessionClass PolkitUnixSessionClass; typedef struct _PolkitUnixSessionClass PolkitUnixSessionClass;
GType polkit_unix_session_get_type (void) G_GNUC_CONST; GType polkit_unix_session_get_type (void) G_GNUC_CO
PolkitSubject *polkit_unix_session_new (const gchar *sess NST;
ion_id); PolkitSubject *polkit_unix_session_new (const gchar
const gchar *polkit_unix_session_get_session_id (PolkitUnixSession *sess *session_id);
ion); void polkit_unix_session_new_for_process (pid_t
void polkit_unix_session_set_session_id (PolkitUnixSession *sess pid,
ion, GCancellable
const gchar *sess *cancellable,
ion_id); GAsyncReadyCall
back callback,
gpointer
user_data);
PolkitSubject *polkit_unix_session_new_for_process_finish (GAsyncResult
*res,
GError
**error);
PolkitSubject *polkit_unix_session_new_for_process_sync (pid_t
pid,
GCancellable
*cancellable,
GError
**error);
const gchar *polkit_unix_session_get_session_id (PolkitUnixSessi
on *session);
void polkit_unix_session_set_session_id (PolkitUnixSessi
on *session,
const gchar
*session_id);
G_END_DECLS G_END_DECLS
#endif /* __POLKIT_UNIX_SESSION_H */ #endif /* __POLKIT_UNIX_SESSION_H */
 End of changes. 1 change blocks. 
9 lines changed or deleted 28 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/