struct tw_allocator

custom allocator type that using it would need to have an alloc field for using tw_alloc_wl_resource_for_obj

#include <utils.h>

struct tw_allocator
{
    // fields

    void*(* alloc)(size_t size, const struct wl_interface *interface);
    void(* free)(void *addr, const struct wl_interface *interface);
};