summaryrefslogtreecommitdiff
path: root/minigbm_helpers.h
diff options
context:
space:
mode:
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
}