6b604b9bda424a45fee38a0c1bc640fb44e4569f
[platform/core/uifw/libds.git] / include / libds / types / ds_buffer.h
1 #ifndef LIBDS_TYPES_DS_BUFFER_H
2 #define LIBDS_TYPES_DS_BUFFER_H
3
4 #include <wayland-server.h>
5 #include <libds/buffer.h>
6
7 struct ds_buffer_interface;
8
9 struct ds_buffer
10 {
11     const struct ds_buffer_interface *iface;
12     void *iface_data;
13
14     int width, height;
15     size_t n_locks;
16
17     bool dropped;
18     bool accessing_data_ptr;
19
20     struct {
21         struct wl_signal destroy;
22         struct wl_signal release;
23     } events;
24 };
25
26 #endif