File: udmabuf.h

package info (click to toggle)
wlroots 0.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,592 kB
  • sloc: ansic: 75,766; xml: 2,739; sh: 33; makefile: 23
file content (23 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef RENDER_ALLOCATOR_UDMABUF_H
#define RENDER_ALLOCATOR_UDMABUF_H

#include <wlr/types/wlr_buffer.h>
#include <wlr/render/allocator.h>

struct wlr_udmabuf_buffer {
	struct wlr_buffer base;

	size_t size;
	struct wlr_shm_attributes shm;
	struct wlr_dmabuf_attributes dmabuf;
};

struct wlr_udmabuf_allocator {
	struct wlr_allocator base;

	int fd;
};

struct wlr_allocator *wlr_udmabuf_allocator_create(void);

#endif