diff options
Diffstat (limited to 'drw.h')
| -rw-r--r-- | drw.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -12,11 +12,16 @@ /* type definitions */ typedef struct { uint32_t *data; + int data_fd; uint32_t *buffer_data; + int buffer_data_fd; unsigned width; unsigned height; + unsigned stride; unsigned size; struct wl_buffer *buffer; + struct wl_shm *shm; + struct wl_shm_pool *pool; } Canvas; typedef struct { @@ -63,6 +68,7 @@ typedef struct { /* exported functions */ Canvas* create_drw(struct wl_shm *shm, unsigned width, unsigned height); +void resize_drw(Canvas *canvas, unsigned width, unsigned height); void free_drw(Canvas *canvas); void push_buffer(Canvas *canvas); |