Reduce code-duplication of socketpair in WaylandServer
ClosedPublic

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

Details

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

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 8719.Dec 3 2016, 1:56 PM
graesslin retitled this revision from to Reduce code-duplication of socketpair in WaylandServer.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptDec 3 2016, 1:56 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
hein accepted this revision.Dec 15 2016, 9:23 PM
hein added a reviewer: hein.
This revision is now accepted and ready to land.Dec 15 2016, 9:23 PM
This revision was automatically updated to reflect the committed changes.