2019-09-13 09:33:49 +02:00
|
|
|
#ifndef LIFTOFF_LIBDRM_MOCK_H
|
|
|
|
#define LIFTOFF_LIBDRM_MOCK_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <xf86drmMode.h>
|
|
|
|
|
|
|
|
extern uint32_t liftoff_mock_drm_crtc_id;
|
2019-10-14 17:34:32 +02:00
|
|
|
extern size_t liftoff_mock_commit_count;
|
2019-09-13 09:33:49 +02:00
|
|
|
|
|
|
|
struct liftoff_layer;
|
|
|
|
|
|
|
|
int liftoff_mock_drm_open(void);
|
|
|
|
uint32_t liftoff_mock_drm_create_fb(struct liftoff_layer *layer);
|
|
|
|
struct liftoff_mock_plane *liftoff_mock_drm_create_plane(int type);
|
2019-09-13 18:46:21 +02:00
|
|
|
struct liftoff_mock_plane *liftoff_mock_drm_get_plane(uint32_t id);
|
2019-09-13 09:33:49 +02:00
|
|
|
void liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane,
|
|
|
|
struct liftoff_layer *layer);
|
2020-01-13 12:14:33 +01:00
|
|
|
struct liftoff_layer *liftoff_mock_plane_get_layer(struct liftoff_mock_plane *plane);
|
2020-05-22 17:36:27 +02:00
|
|
|
uint32_t liftoff_mock_plane_add_property(struct liftoff_mock_plane *plane,
|
|
|
|
const drmModePropertyRes *prop);
|
2019-09-13 09:33:49 +02:00
|
|
|
|
|
|
|
#endif
|