summaryrefslogtreecommitdiff
path: root/minigbm_helpers.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:51:43 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:51:43 +0000
commitce12085dfa5d5932d0a127c005395d20e38f2dfb (patch)
tree6e875bc030bdfb362f5851eb8bde03d87e82d935 /minigbm_helpers.h
parentdc8fd6a2eea818dfe74f2ca124f941718bb9598f (diff)
parent9b05077bc12b7b13ad680bfaec35ddd3cff5dd93 (diff)
downloadminigbm-ce12085dfa5d5932d0a127c005395d20e38f2dfb.tar.gz
Snap for 10453563 from 9b05077bc12b7b13ad680bfaec35ddd3cff5dd93 to mainline-ipsec-releaseaml_ips_341611000aml_ips_341510000aml_ips_340914280aml_ips_340914200aml_ips_340914000
Change-Id: I5c80ab757b044479fa38b733264009503497b349
Diffstat (limited to 'minigbm_helpers.h')
-rw-r--r--minigbm_helpers.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/minigbm_helpers.h b/minigbm_helpers.h
index 08e6283..dbbb644 100644
--- a/minigbm_helpers.h
+++ b/minigbm_helpers.h
@@ -6,6 +6,8 @@
#ifndef _MINIGBM_HELPERS_H_
#define _MINIGBM_HELPERS_H_
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -18,6 +20,8 @@ extern "C" {
#define GBM_DEV_TYPE_FLAG_BLOCKED (1u << 5) /* Unsuitable device e.g. vgem, udl, evdi. */
#define GBM_DEV_TYPE_FLAG_INTERNAL_LCD (1u << 6) /* Device is driving internal LCD. */
+struct gbm_device;
+
struct gbm_device_info {
uint32_t dev_type_flags;
int dri_node_num; /* DRI node number (0..63), for easy matching of devices. */
@@ -32,9 +36,9 @@ int gbm_detect_device_info_path(unsigned int detect_flags, const char *dev_node,
struct gbm_device_info *info);
/*
- * Select "default" device to use for graphics memory allocator.
+ * Create "default" gbm device.
*/
-int gbm_get_default_device_fd(void);
+struct gbm_device *minigbm_create_default_device(int *out_fd);
#ifdef __cplusplus
}