kmsvnc/drm.h

14 lines
595 B
C
Raw Permalink Normal View History

2023-04-27 19:35:18 +08:00
#pragma once
#include "kmsvnc.h"
2023-09-21 20:46:57 +08:00
#define DRM_IOCTL_MUST(...) do{ int e; if ((e = drmIoctl(__VA_ARGS__))) KMSVNC_FATAL("DRM ioctl error %d on line %d\n", e, __LINE__); } while(0)
#define DRM_IOCTL_MAY(...) do{ int e; if ((e = drmIoctl(__VA_ARGS__))) fprintf(stderr, "DRM ioctl error %d on line %d\n", e, __LINE__); } while(0)
#define DRM_R_IOCTL_MAY(...) do{ int e; if ((e = ioctl(__VA_ARGS__))) fprintf(stderr, "DRM ioctl error %d on line %d\n", e, __LINE__); } while(0)
2023-04-27 23:42:41 +08:00
2023-04-27 19:35:18 +08:00
void drm_cleanup();
int drm_open();
int drm_vendors();
2023-07-16 01:34:58 +08:00
int drm_dump_cursor_plane(char **data, int *width, int *height);