test/libdrm_mock: add liftoff_mock_plane_get_id()

Useful when manually calling liftoff_plane_create() is desirable.
This commit is contained in:
Simon Ser 2023-02-09 10:37:07 +01:00
parent 6e8998c8a8
commit 3e72fc3c5d
2 changed files with 8 additions and 0 deletions

View file

@ -206,6 +206,12 @@ liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane,
abort(); // unreachable
}
uint32_t
liftoff_mock_plane_get_id(struct liftoff_mock_plane *plane)
{
return plane->id;
}
uint32_t
liftoff_mock_drm_create_fb(struct liftoff_layer *layer)
{

View file

@ -37,6 +37,8 @@ liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane,
struct liftoff_layer *layer);
struct liftoff_layer *
liftoff_mock_plane_get_layer(struct liftoff_mock_plane *plane);
uint32_t
liftoff_mock_plane_get_id(struct liftoff_mock_plane *plane);
uint32_t
liftoff_mock_plane_add_property(struct liftoff_mock_plane *plane,