Skip to content

Commit

Permalink
buffer: introduce wlr_buffer_impl.get_shm
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Feb 9, 2021
1 parent b2f0eca commit 35308c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/wlr/types/wlr_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@

struct wlr_buffer;

struct wlr_shm_attributes {
int fd;
uint32_t format;
int width, height, stride, offset;
};

struct wlr_buffer_impl {
void (*destroy)(struct wlr_buffer *buffer);
bool (*get_dmabuf)(struct wlr_buffer *buffer,
struct wlr_dmabuf_attributes *attribs);
bool (*get_shm)(struct wlr_buffer *buffer,
struct wlr_shm_attributes *attribs);
};

/**
Expand Down

0 comments on commit 35308c7

Please sign in to comment.