#undef _FORTIFY_SOURCE
#define _GNU_SOURCE 1
#pragma attribute(push, nogc, nothrow)
#include <unistd.h>
#include <sys/mman.h>
#include <wayland-client.h>
#include "libdecor.h"
struct wl_registry *wsi_display_get_registry(struct wl_display *d)
{
return wl_display_get_registry(d);
}
int wsi_registry_add_listener(struct wl_registry *r,
const struct wl_registry_listener *l, void *data)
{
return wl_registry_add_listener(r, l, data);
}
void *wsi_registry_bind(struct wl_registry *r, uint32_t name,
const struct wl_interface *iface, uint32_t version)
{
return wl_registry_bind(r, name, iface, version);
}
struct wl_surface *wsi_compositor_create_surface(struct wl_compositor *c)
{
return wl_compositor_create_surface(c);
}
void wsi_surface_attach(struct wl_surface *s, struct wl_buffer *b, int32_t x, int32_t y)
{
wl_surface_attach(s, b, x, y);
}
void wsi_surface_damage_buffer(struct wl_surface *s, int32_t x, int32_t y,
int32_t w, int32_t h)
{
wl_surface_damage_buffer(s, x, y, w, h);
}
void wsi_surface_commit(struct wl_surface *s)
{
wl_surface_commit(s);
}
void wsi_surface_destroy(struct wl_surface *s)
{
wl_surface_destroy(s);
}
struct wl_shm_pool *wsi_shm_create_pool(struct wl_shm *shm, int32_t fd, int32_t size)
{
return wl_shm_create_pool(shm, fd, size);
}
struct wl_buffer *wsi_shm_pool_create_buffer(struct wl_shm_pool *p, int32_t offset,
int32_t w, int32_t h, int32_t stride, uint32_t format)
{
return wl_shm_pool_create_buffer(p, offset, w, h, stride, format);
}
void wsi_shm_pool_destroy(struct wl_shm_pool *p)
{
wl_shm_pool_destroy(p);
}
void wsi_buffer_destroy(struct wl_buffer *b)
{
wl_buffer_destroy(b);
}
#pragma attribute(pop)