-
- Downloads
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 <lyude@redhat.com>
---
TODO:
* Add upcast functions for these types
Loading
Please register or sign in to comment