Core API Reference - Actions |
Desktop Apps Training - Policy Kit | ||||||||||||||||||||||||||||||||||||||||||||||
Synopsis
DetailsPolKitActiontypedef struct _PolKitAction PolKitAction; Objects of this class are used to record information about an action.
polkit_action_new ()PolKitAction* polkit_action_new (void); Create a new PolKitAction object.
polkit_action_ref ()PolKitAction* polkit_action_ref (PolKitAction *action); Increase reference count.
polkit_action_unref ()void polkit_action_unref (PolKitAction *action); 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_action_set_action_id ()polkit_bool_t polkit_action_set_action_id (PolKitAction *action, Set the action identifier
polkit_action_get_action_id ()polkit_bool_t polkit_action_get_action_id (PolKitAction *action, Get the action identifier.
polkit_action_debug ()void polkit_action_debug (PolKitAction *action); Print debug details
polkit_action_validate ()polkit_bool_t polkit_action_validate (PolKitAction *action); Validate the object
polkit_action_validate_id ()polkit_bool_t polkit_action_validate_id (const char *action_id); Validate whether an action identifier is well formed. To be well formed, an action identifier needs to start with a lower case ASCII character and can only contain the characters "[a-z][0-9].-". It must be less than or equal 256 bytes in length including the terminating NUL character.
polkit_action_equal ()polkit_bool_t polkit_action_equal (PolKitAction *a, Test if a and b refer to the same action.
Since 0.8 polkit_action_to_string_representation ()const char* polkit_action_to_string_representation Serializes action into a textual form that can be transferred from process to process or saved on disk. Use polkit_action_new_from_string_representation() to deserialize it.
Since 0.8 polkit_action_new_from_string_representation ()PolKitAction* polkit_action_new_from_string_representation Creates a new PolKitAction object from a textual representation.
Since 0.8 |