mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
implement permission infrastructure
This commit is contained in:
parent
de700e2a3a
commit
065485a08d
4 changed files with 157 additions and 0 deletions
12
include/permissions.h
Normal file
12
include/permissions.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_PERMISSIONS_H
|
||||
#define LABWC_PERMISSIONS_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
uint32_t permissions_from_interface_name(const char *s);
|
||||
int permissions_context_create(struct wl_display *display, uint32_t permissions);
|
||||
bool permissions_check(const struct wl_client *client, const struct wl_interface *iface);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue