gboolean afdal_af_kernel_permission_permission_add gint  permission_id,
gint  permission_id_self,
AfDalNulFunc  usr_function,
gpointer  usr_data
 

Allows to set the given permission defined by permission_id to the given permission defined by permission_id_self.

Permission mechanism inside Af-Arch allows to associate permission to each others. This allows to have permission depencies which are really useful. Thus, permissions which have a dependency relation with other permissions, sets not only its permission but also relationed permission when they are set to group and users.

INVOCATION METHOD: This function allows to perform a asynchronous remote invocation for the service "af_kernel::permission::permission_add".

Parameters:
permission_id Permission to set to the given permission.
permission_id_self Permission to receive the given permission (permission_id).
usr_function An Asynchronous handler where the AfDalNulData value will be received.
usr_data User defined data to be passed in to the process function defined by usr_function.
Returns:
TRUE if asynchronous request was sent to remote server (af_kernel). FALSE if there was an error while making remote service invocation.