summaryrefslogtreecommitdiff
path: root/src/loader/loader.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-06-17 11:28:49 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2015-06-23 16:54:51 +0100
commit9c927463492dea14d82ebdd77f711f86b0e6fc5e (patch)
tree8c0345f46bae0a9f8eed508f73e83e24088685fd /src/loader/loader.h
parentaaac913e901229d11a1894f6aaf646de6b1a542c (diff)
loader: Rename drm_open_device() to loader_open_device() and share it
This is already our common idiom for opening files with CLOEXEC and it's a little ugly, so let's share this one implementation. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/loader/loader.h')
-rw-r--r--src/loader/loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/loader/loader.h b/src/loader/loader.h
index 60c58f2f8f..055dc78689 100644
--- a/src/loader/loader.h
+++ b/src/loader/loader.h
@@ -37,6 +37,9 @@ extern "C" {
#define _LOADER_GALLIUM (1 << 1)
int
+loader_open_device(const char *);
+
+int
loader_get_pci_id_for_fd(int fd, int *vendor_id, int *chip_id);
char *