#define LIBDS_INTERFACES_BUFFER_H
#include <wayland-server.h>
+#include <libds/types/ds_buffer.h>
#include <libds/buffer.h>
#ifdef __cplusplus
struct wl_resource *(*get_resource)(struct ds_buffer *buffer);
};
-struct ds_buffer
-{
- const struct ds_buffer_interface *iface;
- void *iface_data;
-
- int width, height;
- size_t n_locks;
-
- bool dropped;
- bool accessing_data_ptr;
-
- struct {
- struct wl_signal destroy;
- struct wl_signal release;
- } events;
-};
-
void
ds_buffer_init(struct ds_buffer *buffer,
const struct ds_buffer_interface *iface, int width, int height);
--- /dev/null
+#ifndef LIBDS_TYPES_DS_BUFFER_H
+#define LIBDS_TYPES_DS_BUFFER_H
+
+#include <wayland-server.h>
+#include <libds/buffer.h>
+
+struct ds_buffer_interface;
+
+struct ds_buffer
+{
+ const struct ds_buffer_interface *iface;
+ void *iface_data;
+
+ int width, height;
+ size_t n_locks;
+
+ bool dropped;
+ bool accessing_data_ptr;
+
+ struct {
+ struct wl_signal destroy;
+ struct wl_signal release;
+ } events;
+};
+
+#endif