Core API Reference - Caller |
Desktop Apps Training - Policy Kit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Synopsis
DescriptionThis class is used to represent a caller in another process that is calling into a mechanism to make the mechanism do something.
DetailsPolKitCallertypedef struct _PolKitCaller PolKitCaller; Objects of this class are used to record information about a caller in another process.
polkit_caller_new ()PolKitCaller* polkit_caller_new (void); Creates a new PolKitCaller object.
polkit_caller_ref ()PolKitCaller* polkit_caller_ref (PolKitCaller *caller); Increase reference count.
polkit_caller_unref ()void polkit_caller_unref (PolKitCaller *caller); Decreases the reference count of the object. If it becomes zero, the object is freed. Before freeing, reference counts on embedded objects are decresed by one.
polkit_caller_set_dbus_name ()polkit_bool_t polkit_caller_set_dbus_name (PolKitCaller *caller, Set the callers unique system bus connection name.
polkit_caller_set_uid ()polkit_bool_t polkit_caller_set_uid (PolKitCaller *caller, Set the callers UNIX user id.
polkit_caller_set_pid ()polkit_bool_t polkit_caller_set_pid (PolKitCaller *caller, Set the callers UNIX process id.
polkit_caller_set_selinux_context ()polkit_bool_t polkit_caller_set_selinux_context (PolKitCaller *caller, Set the callers SELinux security context.
polkit_caller_set_ck_session ()polkit_bool_t polkit_caller_set_ck_session (PolKitCaller *caller, Set the callers session. The reference count on the given object will be increased by one. If an existing session object was set already, the reference count on that one will be decreased by one.
polkit_caller_get_dbus_name ()polkit_bool_t polkit_caller_get_dbus_name (PolKitCaller *caller, Get the callers unique system bus connection name.
polkit_caller_get_uid ()polkit_bool_t polkit_caller_get_uid (PolKitCaller *caller, Get the callers UNIX user id.
polkit_caller_get_pid ()polkit_bool_t polkit_caller_get_pid (PolKitCaller *caller, Get the callers UNIX process id.
polkit_caller_get_selinux_context ()polkit_bool_t polkit_caller_get_selinux_context (PolKitCaller *caller, Get the callers SELinux security context. Note that this may be NULL if SELinux is not available on the system.
polkit_caller_get_ck_session ()polkit_bool_t polkit_caller_get_ck_session (PolKitCaller *caller, Get the callers session. Note that this may be NULL if the caller is not in any session.
polkit_caller_debug ()void polkit_caller_debug (PolKitCaller *caller); Print debug details
|