aboutsummaryrefslogtreecommitdiffstats
path: root/drmtools.h
blob: 2429e101c25306b7b846052ec0de2242ac11f7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <xf86drm.h>
#include <xf86drmMode.h>

/* internal */
extern int drm_fd;
extern drmModeEncoder *drm_enc;
extern drmModeModeInfo *drm_mode;
extern drmModeConnector *drm_conn;
void drm_cleanup_display(void);
int drm_init_dev(const char *dev, const char *output, const char *mode);

/* drmtools.c */
gfxstate *drm_init(const char *device, const char *output,
                   const char *mode, bool pageflip);
void drm_info(const char *device);