diff options
author | Derek Foreman <[email protected]> | 2015-06-17 11:28:49 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-06-23 16:54:51 +0100 |
commit | 9c927463492dea14d82ebdd77f711f86b0e6fc5e (patch) | |
tree | 8c0345f46bae0a9f8eed508f73e83e24088685fd /src/loader/loader.h | |
parent | aaac913e901229d11a1894f6aaf646de6b1a542c (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 <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/loader.h')
-rw-r--r-- | src/loader/loader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/loader/loader.h b/src/loader/loader.h index 60c58f2f8fc..055dc786892 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 * |