diff options
| author | srdusr <[email protected]> | 2024-07-16 21:25:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2024-07-16 21:25:00 +0200 |
| commit | 6fad44b3ecffb22f77a78661ce179b304e9a6ccc (patch) | |
| tree | 4bba4624f0be3a2aa34965740ae5c9ebcc12b759 /README.md | |
| parent | 2994f622b2998dc6aebbd38f52a6e6612ed8e7c8 (diff) | |
| download | srdwm-6fad44b3ecffb22f77a78661ce179b304e9a6ccc.tar.gz srdwm-6fad44b3ecffb22f77a78661ce179b304e9a6ccc.zip | |
Split crates/wayland/src/udev.rs (1643 lines) into udev/
Pure reorganization, no behavior change - verified by diffing the
function-name and struct-name sets before/after (both identical) plus
a full cargo test pass. Struct definitions (Card, DrmBuffer, UdevHead,
UdevState) and their small impls stay in mod.rs, since default (crate-
scoped) privacy there is visible to every descendant submodule without
further changes. The rest splits by concern:
- render.rs: the per-frame impl CompState block (render_udev_frame and
the gamma/output-power methods) - still one ~520-line function,
left intact rather than decomposed, given how much of its structure
(the self.udev.as_mut() disjoint-borrow pattern threaded through it)
is deliberate and already documented inline.
- outputs.rs: hotplug reprobe/relayout (impl CompState).
- platform.rs: UdevPlatform's struct/connect logic and its `impl
Platform for UdevPlatform`, previously split apart in the flat file
by ~250 lines of unrelated DRM/session code sitting between them.
- drm.rs: mode/CRTC/framebuffer probing and setup.
- session.rs: libseat/libinput/udev-monitor calloop registration and
the libinput event handler.
A few free functions and one struct (ConnectorProbe, bring_up_head,
probe_connected, pick_crtc, the register_* functions) went from
module-private to pub(crate): called across what are now sibling
submodules, which - unlike a defining module's own descendants --
Rust's privacy model doesn't let see each other's private items.
Matches this crate's existing pub(crate) convention rather than
introducing pub(super), which crates/core's manager/ split used
instead to match *that* crate's plain-private convention.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions