mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-07 11:10:14 +01:00
The same socket is used for pre-connection configuration by a portal and for the actual client that then uses the data. The portal and the client may need different protocol versions *and* there may be different REIS intermediaries. So let's allow version negotiation for the configuration through transactions: a REIS intermediary must start/finish a transaction with a given version number. This is only partially implemented in libreis right now: each API call is wrapped in a transaction. Since we support version 1 only anyway, there's no need to do anything but send our version down the wire. In the future where we actually need to negotiate, libreis will need a reis_dispatch() so we can wait for the server version to arrive, parse it, etc. before sending ConfigureVersion down the wire. It's likely this will never be needed. |
||
|---|---|---|
| .. | ||
| ei.proto | ||
| meson.build | ||