aboutsummaryrefslogtreecommitdiff
path: root/include/backend/backend.h
blob: 7d88cd79da45b69f74114c99292a1c235ec77a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef BACKEND_WLR_BACKEND_H
#define BACKEND_WLR_BACKEND_H

#include <wlr/backend.h>

/**
 * Get the supported buffer capabilities.
 *
 * This functions returns a bitfield of supported wlr_buffer_cap.
 */
uint32_t backend_get_buffer_caps(struct wlr_backend *backend);

/**
 * Get the backend's allocator. Automatically creates the allocator if
 * necessary.
 */
struct wlr_allocator *backend_get_allocator(struct wlr_backend *backend);

#endif