Expose wl_display_set_global_filter as a virtual method

Authored by davidedmundson on Nov 17 2017, 8:34 AM.

Description

Expose wl_display_set_global_filter as a virtual method

Summary:
This allows a server to filter which globals are visible and bindable by
clients.

Design rationale:
Could be it's own class with Display as an arg, but we need the lifespan
to exactly match Display, and the cardinality to match Display and it
needs to be set after we're started but before clients connect.

Better to enfore rules with code than with documentation.

I'm filtering by interface name as there isn't any other good
identifier of what a wl_global refers to, even if you could assume
you can cast the userdata to a Server::Global.

Test Plan: Attached unit test

Reviewers: Plasma, graesslin, bcooksley

Reviewed By: Plasma, graesslin

Subscribers: bcooksley, graesslin, plasma-devel, Frameworks

Tags: Frameworks, Plasma

Differential Revision: https://phabricator.kde.org/D8050

Details

Committed
davidedmundsonNov 17 2017, 8:35 AM
Reviewer
Plasma
Differential Revision
D8050: Expose wl_display_set_global_filter as a virtual method
Parents
R127:9c0a273a27cb: Fix kwayland-testXdgShellV6.
Branches
Unknown
Tags
Unknown