Even lower-level api #1419
Unanswered
andrewbaxter
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Ah... digging deeper into the Wayland protocol it seems like this isn't possible. Basically opcodes are relative to the object type, so you can't know what opcode That said, I don't see a way to hook into |
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
-
I'm interested in proxying wayland connections and filtering/modifying some requests.
I was poking around with
wayland-client
andwayland-server
and AFAICT this would require:Dispatch
for all object typesrequest
to each object type, look up the corresponding object on the other side and use it tosend_request
upstreamAnd I think something similar for downstream/events.
Aside from needing to create two objects when no state is required locally, I'm mostly looking at all the boilerplate I'd need to write to do the forwarding. I'm not sure if I'd need to do it for everything that implements Proxy (which is... a lot) but it doesn't seem trivial.
I dug around, and it looks like there's something lower level like
client.next_event()
but it doesn't appear to be exposed. I basically want something to handle socket setup (for whatever specific socket options wayland requires) and parsing and nothing else. Is there an easier way I can do this?FWIW I was looking at sommelier but it's quite complex, so maybe this is less trivial than I imagined for other reasons. There's a couple other wayland proxies/load balancers but IIRC they do socket-level stuff rather than protocol-level.
Beta Was this translation helpful? Give feedback.
All reactions