25#ifndef PIPEWIRE_PERMISSION_H
26#define PIPEWIRE_PERMISSION_H
53#define PW_PERM_RWX (PW_PERM_R|PW_PERM_W|PW_PERM_X)
54#define PW_PERM_RWXM (PW_PERM_RWX|PW_PERM_M)
56#define PW_PERM_IS_R(p) (((p)&PW_PERM_R) == PW_PERM_R)
57#define PW_PERM_IS_W(p) (((p)&PW_PERM_W) == PW_PERM_W)
58#define PW_PERM_IS_X(p) (((p)&PW_PERM_X) == PW_PERM_X)
59#define PW_PERM_IS_M(p) (((p)&PW_PERM_M) == PW_PERM_M)
61#define PW_PERM_ALL PW_PERM_RWXM
62#define PW_PERM_INVALID (uint32_t)(0xffffffff)
69#define PW_PERMISSION_INIT(id,p) ((struct pw_permission){ (id), (p) })
71#define PW_PERMISSION_FORMAT "%c%c%c%c"
72#define PW_PERMISSION_ARGS(permission) \
73 (permission) & PW_PERM_R ? 'r' : '-', \
74 (permission) & PW_PERM_W ? 'w' : '-', \
75 (permission) & PW_PERM_X ? 'x' : '-', \
76 (permission) & PW_PERM_M ? 'm' : '-'
Definition: permission.h:80
uint32_t id
id of object, PW_ID_ANY for default permission
Definition: permission.h:81
uint32_t permissions
bitmask of above permissions
Definition: permission.h:82