File: buffer.h

package info (click to toggle)
grim 1.3.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 172 kB
  • sloc: ansic: 942; xml: 152; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _BUFFER_H
#define _BUFFER_H

#include <wayland-client.h>

struct grim_buffer {
	struct wl_buffer *wl_buffer;
	void *data;
	int32_t width, height, stride;
	size_t size;
	enum wl_shm_format format;
};

struct grim_buffer *create_buffer(struct wl_shm *shm, enum wl_shm_format format,
	int32_t width, int32_t height, int32_t stride);
void destroy_buffer(struct grim_buffer *buffer);

#endif