Documentation for <wlr/types/wlr_security_context_v1.h>

Back to index

Table of contents

struct wlr_security_context_manager_v1

struct wlr_security_context_manager_v1 {
	struct wl_global *global;
	
	struct {
		struct wl_signal destroy;
		struct wl_signal commit; // struct wlr_security_context_v1_commit_event
	} events;
	
	void *data;
	
	// private state
	
	struct wl_list contexts; // wlr_security_context_v1.link
	
	struct wl_listener display_destroy;
};

An implementation of the security context protocol.

Compositors can create this manager, setup a filter for Wayland globals via wl_display_set_global_filter(), and inside the filter query the security context state via wlr_security_context_manager_v1_lookup_client().

wlr_security_context_manager_v1_create()

struct wlr_security_context_manager_v1 *wlr_security_context_manager_v1_create(​struct wl_display *display);

wlr_security_context_manager_v1_lookup_client()

const struct wlr_security_context_v1_state *wlr_security_context_manager_v1_lookup_client(​struct wlr_security_context_manager_v1 *manager, const struct wl_client *client);

struct wlr_security_context_v1_commit_event

struct wlr_security_context_v1_commit_event {
	const struct wlr_security_context_v1_state *state;
	// Client which created the security context
	struct wl_client *parent_client;
};

struct wlr_security_context_v1_state

struct wlr_security_context_v1_state {
	char *sandbox_engine; // may be NULL
	char *app_id; // may be NULL
	char *instance_id; // may be NULL
};