diff options
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index c1c6d846..610b2235 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -376,6 +376,16 @@ err_path: return -1; } +int __intel_peek_fd(ScrnInfoPtr scrn) +{ + struct intel_device *dev; + + dev = intel_device(scrn); + assert(dev && dev->fd != -1); + + return dev->fd; +} + int intel_get_device(ScrnInfoPtr scrn) { struct intel_device *dev; |