Module safe_app::ffi::mutable_data::permissions [] [src]

FFI for mutable data permissions and permission sets.

Enums

MDataAction

Permission actions.

PermissionValue

State of action in the permission set

Statics

USER_ANYONE

Special value that represents User::Anyone in permission sets.

Functions

mdata_permission_set_allow

Allow the action in the permission set.

mdata_permission_set_clear

Clear the actions in the permission set.

mdata_permission_set_deny

Deny the action in the permission set.

mdata_permission_set_free

Free the permission set from memory.

mdata_permission_set_is_allowed

Read the permission set.

mdata_permission_set_new

Create new permission set.

mdata_permissions_for_each

Iterate over the permissions. The o_each_cb is called for each (user, permission set) pair in the permissions. The o_done_cb is called after the iterations is over, or in case of error.

mdata_permissions_free

Free the permissions from memory.

mdata_permissions_get

Get the permission set corresponding to the given user. Use a constant USER_ANYONE for anyone.

mdata_permissions_insert

Insert permission set for the given user to the permissions.

mdata_permissions_len

Get the number of entries in the permissions.

mdata_permissions_new

Create new permissions.