kmsvnc/drm.h

13 lines
524 B
C
Raw Normal View History

2023-04-27 19:35:18 +08:00
#pragma once
#include "kmsvnc.h"
2023-04-29 02:05:13 +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();