Permissions
Object Hierarchy:
Gst.RTSPServer.Permissions
Gst.RTSPServer.Permissions
Gst.RTSPServer.Permissions
Gst.MiniObject
Gst.MiniObject
Gst.MiniObject->Gst.RTSPServer.Permissions
Description:
[
CCode ( cname =
"GstRTSPPermissions" , copy_function =
"g_boxed_copy" , free_function =
"g_boxed_free" , lower_case_cprefix =
"gst_rtsp_permissions_" , type_id =
"gst_rtsp_permissions_get_type ()" ) ]
[
Compact ]
[
GIR ( name =
"RTSPPermissions" ) ]
public class Permissions :
MiniObject
The opaque permissions structure.
It is used to define the permissions of objects in different roles.
Content:
Constants:
public const string MEDIA_FACTORY_ACCESS
G_TYPE_BOOLEAN, true if the media can be
accessed, false will return a 404 Not Found error when trying to access the media.
public const string MEDIA_FACTORY_CONSTRUCT
G_TYPE_BOOLEAN, true if the media can be
constructed, false will return a 404 Not Found error when trying to access the media.
Creation methods:
Methods:
public void add_permission_for_role (string role, string permission, bool allowed)
Add a new permission
for role
to
this with the access in allowed
.
public void add_role (string role, string fieldname, ...)
Add a new role
to this with
the given variables.
public void add_role_empty (string role)
Add a new role
to this
without any permissions.
public void add_role_from_structure (Structure structure)
Add a new role to permissions
based on structure
,
for example given a role named `tester`, which should be granted a permission named `permission1`, the structure could be created with:
public void add_role_valist (string role, string fieldname, va_list var_args)
Add a new role
to this with
the given variables.
public unowned Structure get_role (string role)
Get all permissions for role
in this
.
public bool is_allowed (string role, string permission)
Check if role
in this is
given permission for permission
.
public void remove_role (string role)
Remove all permissions for role
in
this .
Inherited Members:
All known members inherited from class Gst.MiniObject