Skip to content
Snippets Groups Projects
Commit 3f20068c authored by Lyude Paul's avatar Lyude Paul
Browse files

WIP: rust: drm/kms: Add OpaqueConnector and OpaqueConnectorState


Since we allow drivers to have multiple implementations of DriverConnector
and DriverConnectorState (in C, the equivalent of this is having multiple
structs which embed drm_connector) - there are some situations we will run
into where it's not possible for us to know the corresponding
DriverConnector or DriverConnectorState for a given connector. The most
obvious one is iterating through all connectors on a KMS device.

So, take advantage of the various connector traits we added to introduce
OpaqueConnector<> and OpaqueConnectorState<> which both can be used as a
DRM connector and connector state respectively without needing to know the
corresponding traits.

Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>

---

TODO:
* Add upcast functions for these types
parent cf4eeef4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment