Diffusion KWin a7f5c1675425

Reduce code-duplication of socketpair in WaylandServer

Authored by graesslin on Dec 3 2016, 1:54 PM.

Description

Reduce code-duplication of socketpair in WaylandServer

Summary:
WaylandServer creates a socketpair for several Wayland connections. So
far this duplicated code quite a bit.

This change introduces one method to perform the socketpair and the
error checking plus creating the server side ClientConnection from the
pair.

Test Plan: Tests still pass

Reviewers: KWin, Plasma on Wayland

Subscribers: plasma-devel, kwin

Tags: Plasma on Wayland, KWin

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

Details

Committed
graesslinDec 17 2016, 8:47 AM
Differential Revision
D3576: Reduce code-duplication of socketpair in WaylandServer
Parents
R108:1f5356e609c2: Fix build (with clang at least)
Branches
Unknown
Tags
Unknown