polkit.h | polkit.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_H | #ifndef __POLKIT_H | |||
#define __POLKIT_H | #define __POLKIT_H | |||
#define _POLKIT_INSIDE_POLKIT_H 1 | #define _POLKIT_INSIDE_POLKIT_H 1 | |||
#include <polkit/polkittypes.h> | ||||
#include <polkit/polkitenumtypes.h> | ||||
#include <polkit/polkitimplicitauthorization.h> | #include <polkit/polkitimplicitauthorization.h> | |||
#include <polkit/polkitactiondescription.h> | #include <polkit/polkitactiondescription.h> | |||
#include <polkit/polkiterror.h> | #include <polkit/polkiterror.h> | |||
#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> | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||
polkitauthority.h | polkitauthority.h | |||
---|---|---|---|---|
skipping to change at line 102 | skipping to change at line 102 | |||
GList *polkit_authority_enumerate_temporary_authorizati ons_sync (PolkitAuthority *authority, | GList *polkit_authority_enumerate_temporary_authorizati ons_sync (PolkitAuthority *authority, | |||
PolkitSubject *subject, | PolkitSubject *subject, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
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, | ||||
const gchar *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 180 | skipping to change at line 185 | |||
void polkit_authority_revoke_temporary_authorizations (PolkitAuthority *authority, | void polkit_authority_revoke_temporary_authorizations (PolkitAuthority *authority, | |||
PolkitSubject *subject, | PolkitSubject *subject, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GAsyncReadyCallback callback, | GAsyncReadyCallback callback, | |||
gpointer user_data); | gpointer user_data); | |||
gboolean polkit_authority_revoke_temporary_authorizations _finish (PolkitAuthority *authority, | gboolean polkit_authority_revoke_temporary_authorizations _finish (PolkitAuthority *authority, | |||
GAsyncResult *res, | GAsyncResult *res, | |||
GError **error); | GError **error); | |||
void polkit_authority_revoke_temporary_authorization_ | ||||
by_id (PolkitAuthority *authority, | ||||
const gchar *id, | ||||
GCancellable *cancellable, | ||||
GAsyncReadyCallback callback, | ||||
gpointer user_data); | ||||
gboolean polkit_authority_revoke_temporary_authorization_ | ||||
by_id_finish (PolkitAuthority *authority, | ||||
GAsyncResult *res, | ||||
GError **error); | ||||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_AUTHORITY_H */ | #endif /* __POLKIT_AUTHORITY_H */ | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 27 lines changed or added | |||
polkitauthorizationresult.h | polkitauthorizationresult.h | |||
---|---|---|---|---|
skipping to change at line 46 | skipping to change at line 46 | |||
#define POLKIT_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST( (k), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResultClass)) | #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_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(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_IS_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_TYPE_AUTHORIZATION_RESULT)) | |||
#if 0 | #if 0 | |||
typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; | typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; | |||
#endif | #endif | |||
typedef struct _PolkitAuthorizationResultClass PolkitAuthorizationResultCla ss; | typedef struct _PolkitAuthorizationResultClass PolkitAuthorizationResultCla ss; | |||
GType polkit_authorization_result_get_type (v | GType polkit_authorization_result_get_type | |||
oid) G_GNUC_CONST; | (void) G_GNUC_CONST; | |||
PolkitAuthorizationResult *polkit_authorization_result_new (g | PolkitAuthorizationResult *polkit_authorization_result_new | |||
boolean is_authorized, | (gboolean is_authorized, | |||
g | ||||
boolean is_challenge, | gboolean is_challenge, | |||
P | ||||
olkitDetails *details); | PolkitDetails *details); | |||
gboolean polkit_authorization_result_get_is_authorized (P | PolkitDetails *polkit_authorization_result_get_details | |||
olkitAuthorizationResult *result); | (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_is_challenge (P | gboolean polkit_authorization_result_get_is_authorized | |||
olkitAuthorizationResult *result); | (PolkitAuthorizationResult *result); | |||
PolkitDetails *polkit_authorization_result_get_details (P | gboolean polkit_authorization_result_get_is_challenge | |||
olkitAuthorizationResult *result); | (PolkitAuthorizationResult *result); | |||
gboolean polkit_authorization_result_get_retains_authorization | ||||
(PolkitAuthorizationResult *result); | ||||
const gchar *polkit_authorization_result_get_temporary_authorization_ | ||||
id (PolkitAuthorizationResult *result); | ||||
/* ------------------------------------------------------------------------ ---------------------------- */ | /* ------------------------------------------------------------------------ ---------------------------- */ | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | #endif /* __POLKIT_AUTHORIZATION_RESULT_H */ | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 18 lines changed or added | |||
polkitbackendauthority.h | polkitbackendauthority.h | |||
---|---|---|---|---|
skipping to change at line 97 | skipping to change at line 97 | |||
* polkit_backend_authority_authentication_agent_response() for | * polkit_backend_authority_authentication_agent_response() for | |||
* details. | * details. | |||
* @enumerate_temporary_authorizations: Called to enumerate temporary | * @enumerate_temporary_authorizations: Called to enumerate 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_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 | ||||
* authorization identified by id or %NULL if the backend doesn't support | ||||
* the operation. See polkit_backend_authority_revoke_temporary_authorizati | ||||
on_by_id() | ||||
* 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 159 | skipping to change at line 163 | |||
GList *(*enumerate_temporary_authorizations) (PolkitBackendAuthority *a uthority, | GList *(*enumerate_temporary_authorizations) (PolkitBackendAuthority *a uthority, | |||
PolkitSubject *c aller, | PolkitSubject *c aller, | |||
PolkitSubject *s ubject, | PolkitSubject *s ubject, | |||
GError **e rror); | GError **e rror); | |||
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, | ||||
PolkitSubject | ||||
*caller, | ||||
const gchar | ||||
*id, | ||||
GError | ||||
**error); | ||||
/* 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); | |||
skipping to change at line 258 | skipping to change at line 267 | |||
GList *polkit_backend_authority_enumerate_temporary_authorizations (PolkitB ackendAuthority *authority, | GList *polkit_backend_authority_enumerate_temporary_authorizations (PolkitB ackendAuthority *authority, | |||
PolkitS ubject *caller, | PolkitS ubject *caller, | |||
PolkitS ubject *subject, | PolkitS ubject *subject, | |||
GError **error); | GError **error); | |||
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, | ||||
Pol | ||||
kitSubject *caller, | ||||
con | ||||
st gchar *id, | ||||
GEr | ||||
ror **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. 3 change blocks. | ||||
0 lines changed or deleted | 23 lines changed or added | |||
polkitunixgroup.h | polkitunixgroup.h | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
#define POLKIT_UNIX_GROUP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PO LKIT_TYPE_UNIX_GROUP, PolkitUnixGroupClass)) | #define POLKIT_UNIX_GROUP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PO LKIT_TYPE_UNIX_GROUP, PolkitUnixGroupClass)) | |||
#define POLKIT_IS_UNIX_GROUP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), P OLKIT_TYPE_UNIX_GROUP)) | #define POLKIT_IS_UNIX_GROUP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), P OLKIT_TYPE_UNIX_GROUP)) | |||
#define POLKIT_IS_UNIX_GROUP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLK IT_TYPE_UNIX_GROUP)) | #define POLKIT_IS_UNIX_GROUP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLK IT_TYPE_UNIX_GROUP)) | |||
#if 0 | #if 0 | |||
typedef struct _PolkitUnixGroup PolkitUnixGroup; | typedef struct _PolkitUnixGroup PolkitUnixGroup; | |||
#endif | #endif | |||
typedef struct _PolkitUnixGroupClass PolkitUnixGroupClass; | typedef struct _PolkitUnixGroupClass PolkitUnixGroupClass; | |||
GType polkit_unix_group_get_type (void) G_GNUC_CONST; | GType polkit_unix_group_get_type (void) G_GNUC_CONST; | |||
PolkitIdentity *polkit_unix_group_new (gid_t gid); | PolkitIdentity *polkit_unix_group_new (gint gid); | |||
PolkitIdentity *polkit_unix_group_new_for_name (const gchar *name, | PolkitIdentity *polkit_unix_group_new_for_name (const gchar *name, | |||
GError **error); | GError **error); | |||
gid_t polkit_unix_group_get_gid (PolkitUnixGroup *group); | gint polkit_unix_group_get_gid (PolkitUnixGroup *group); | |||
void polkit_unix_group_set_gid (PolkitUnixGroup *group, | void polkit_unix_group_set_gid (PolkitUnixGroup *group, | |||
gid_t gid); | gint gid); | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_UNIX_GROUP_H */ | #endif /* __POLKIT_UNIX_GROUP_H */ | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
polkitunixprocess.h | polkitunixprocess.h | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
#define POLKIT_UNIX_PROCESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_UNIX_PROCESS, PolkitUnixProcessClass)) | #define POLKIT_UNIX_PROCESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_UNIX_PROCESS, PolkitUnixProcessClass)) | |||
#define POLKIT_IS_UNIX_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_UNIX_PROCESS)) | #define POLKIT_IS_UNIX_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_UNIX_PROCESS)) | |||
#define POLKIT_IS_UNIX_PROCESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PO LKIT_TYPE_UNIX_PROCESS)) | #define POLKIT_IS_UNIX_PROCESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PO LKIT_TYPE_UNIX_PROCESS)) | |||
#if 0 | #if 0 | |||
typedef struct _PolkitUnixProcess PolkitUnixProcess; | typedef struct _PolkitUnixProcess PolkitUnixProcess; | |||
#endif | #endif | |||
typedef struct _PolkitUnixProcessClass PolkitUnixProcessClass; | typedef struct _PolkitUnixProcessClass PolkitUnixProcessClass; | |||
GType polkit_unix_process_get_type (void) G_GNUC_CONST; | GType polkit_unix_process_get_type (void) G_GNUC_CONST; | |||
PolkitSubject *polkit_unix_process_new (pid_t pid); | PolkitSubject *polkit_unix_process_new (gint pid); | |||
PolkitSubject *polkit_unix_process_new_full (pid_t pid, | PolkitSubject *polkit_unix_process_new_full (gint pid, | |||
guint64 start_time); | guint64 start_time); | |||
pid_t polkit_unix_process_get_pid (PolkitUnixProcess *proc ess); | gint polkit_unix_process_get_pid (PolkitUnixProcess *proc ess); | |||
guint64 polkit_unix_process_get_start_time (PolkitUnixProcess *proc ess); | guint64 polkit_unix_process_get_start_time (PolkitUnixProcess *proc ess); | |||
void polkit_unix_process_set_pid (PolkitUnixProcess *proc ess, | void polkit_unix_process_set_pid (PolkitUnixProcess *proc ess, | |||
pid_t pid) | gint pid) | |||
; | ; | |||
gint polkit_unix_process_get_owner (PolkitUnixProcess *pro | ||||
cess, | ||||
GError **err | ||||
or); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_UNIX_PROCESS_H */ | #endif /* __POLKIT_UNIX_PROCESS_H */ | |||
End of changes. 4 change blocks. | ||||
6 lines changed or deleted | 9 lines changed or added | |||
polkitunixsession.h | polkitunixsession.h | |||
---|---|---|---|---|
skipping to change at line 49 | skipping to change at line 49 | |||
#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_CO NST; | GType polkit_unix_session_get_type (void) G_GNUC_CO NST; | |||
PolkitSubject *polkit_unix_session_new (const gchar *session_id); | PolkitSubject *polkit_unix_session_new (const gchar *session_id); | |||
void polkit_unix_session_new_for_process (pid_t pid, | void polkit_unix_session_new_for_process (gint pid, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GAsyncReadyCall back callback, | GAsyncReadyCall back callback, | |||
gpointer user_data); | gpointer user_data); | |||
PolkitSubject *polkit_unix_session_new_for_process_finish (GAsyncResult *res, | PolkitSubject *polkit_unix_session_new_for_process_finish (GAsyncResult *res, | |||
GError **error); | GError **error); | |||
PolkitSubject *polkit_unix_session_new_for_process_sync (pid_t pid, | PolkitSubject *polkit_unix_session_new_for_process_sync (gint pid, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
const gchar *polkit_unix_session_get_session_id (PolkitUnixSessi on *session); | const gchar *polkit_unix_session_get_session_id (PolkitUnixSessi on *session); | |||
void polkit_unix_session_set_session_id (PolkitUnixSessi on *session, | void polkit_unix_session_set_session_id (PolkitUnixSessi on *session, | |||
const gchar *session_id); | const gchar *session_id); | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_UNIX_SESSION_H */ | #endif /* __POLKIT_UNIX_SESSION_H */ | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
polkitunixuser.h | polkitunixuser.h | |||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
#define POLKIT_UNIX_USER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POL KIT_TYPE_UNIX_USER, PolkitUnixUserClass)) | #define POLKIT_UNIX_USER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POL KIT_TYPE_UNIX_USER, PolkitUnixUserClass)) | |||
#define POLKIT_IS_UNIX_USER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PO LKIT_TYPE_UNIX_USER)) | #define POLKIT_IS_UNIX_USER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PO LKIT_TYPE_UNIX_USER)) | |||
#define POLKIT_IS_UNIX_USER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKI T_TYPE_UNIX_USER)) | #define POLKIT_IS_UNIX_USER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKI T_TYPE_UNIX_USER)) | |||
#if 0 | #if 0 | |||
typedef struct _PolkitUnixUser PolkitUnixUser; | typedef struct _PolkitUnixUser PolkitUnixUser; | |||
#endif | #endif | |||
typedef struct _PolkitUnixUserClass PolkitUnixUserClass; | typedef struct _PolkitUnixUserClass PolkitUnixUserClass; | |||
GType polkit_unix_user_get_type (void) G_GNUC_CONST; | GType polkit_unix_user_get_type (void) G_GNUC_CONST; | |||
PolkitIdentity *polkit_unix_user_new (uid_t uid); | PolkitIdentity *polkit_unix_user_new (gint uid); | |||
PolkitIdentity *polkit_unix_user_new_for_name (const gchar *name, | PolkitIdentity *polkit_unix_user_new_for_name (const gchar *name, | |||
GError **error); | GError **error); | |||
uid_t polkit_unix_user_get_uid (PolkitUnixUser *user); | gint polkit_unix_user_get_uid (PolkitUnixUser *user); | |||
void polkit_unix_user_set_uid (PolkitUnixUser *user, | void polkit_unix_user_set_uid (PolkitUnixUser *user, | |||
uid_t uid); | gint uid); | |||
G_END_DECLS | G_END_DECLS | |||
#endif /* __POLKIT_UNIX_USER_H */ | #endif /* __POLKIT_UNIX_USER_H */ | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||