aboutsummaryrefslogtreecommitdiff
path: root/rust/drm_wrapper.h
blob: 98d877e12c66cf19a6ac80942b5129a35e4d6a9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2024 Google LLC
 */

#include <fcntl.h>
#include <xf86drm.h>
#include <xf86drmMode.h>

// bindgen doesn't create constants for macros that expand to other macros
// https://github.com/Smithay/drm-rs/blob/328742fddc675b3370057b382eb54acbc9b48c79/drm-ffi/drm-sys/build.rs#L110

const unsigned int __BINDGEN_TMP_DRM_MODE_PROP_OBJECT = DRM_MODE_PROP_OBJECT;
#undef DRM_MODE_PROP_OBJECT
const unsigned int DRM_MODE_PROP_OBJECT = __BINDGEN_TMP_DRM_MODE_PROP_OBJECT;
#define DRM_MODE_PROP_OBJECT DRM_MODE_PROP_OBJECT

const unsigned int __BINDGEN_TMP_DRM_MODE_PROP_SIGNED_RANGE =
    DRM_MODE_PROP_SIGNED_RANGE;
#undef DRM_MODE_PROP_SIGNED_RANGE
const unsigned int DRM_MODE_PROP_SIGNED_RANGE =
    __BINDGEN_TMP_DRM_MODE_PROP_SIGNED_RANGE;
#define DRM_MODE_PROP_SIGNED_RANGE DRM_MODE_PROP_SIGNED_RANGE