Xtrans - External Pre-requisite Code (Code Smell/Ick) #191
Closed
CustardEddy
started this conversation in
General
Replies: 1 comment 1 reply
-
there's already a PR for incorporating it into the X server tree: X11Libre/xserver#275 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Going through the process of familiarising myself with the codebase.
Almost immediately, I run into Xtrans.
This is the 'transport layer' (network/IPC) of the server, but is not included in the source tree.
Wasn't hard to track-down the code and history:
On my system, this is achieved by copying the code to /usr/include/X11/Xtrans.
"Code" is:
I've seen my fair-share of 'funky' build stuff (and probably done some funky stuff myself...) but this is really something!
The code is written to vary at compile-time, using a lot of # conditionals. It's not, ultimately, a lot of code, and doesn't appear that complex - it's mostly wrappers around open(), close(), read(), write() etc.
I'm about 95% that this isn't used in any public interfaces; it's an implementation helper library, but doesn't do any actual X Protocol stuff (need to do more thorough analysis to be 100%).
Options are:
My current order of preference is:
4, 2, 5, 3, 1.
Though, I am very open to discussion (well, 1 will never move from my least favourite! 😆 )
Beta Was this translation helpful? Give feedback.
All reactions