keyrouter: Fix wrong validity check
[platform/core/uifw/libds-tizen.git] / include / libds / allocator.h
1 #ifndef LIBDS_ALLOCATOR_H
2 #define LIBDS_ALLOCATOR_H
3
4 #include <libds/buffer.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 struct ds_allocator;
11
12 void
13 ds_allocator_destroy(struct ds_allocator *alloc);
14
15 struct ds_buffer *
16 ds_allocator_create_buffer(struct ds_allocator *alloc, int width, int height,
17         uint32_t format);
18
19 void
20 ds_allocator_add_destroy_listener(struct ds_allocator *alloc,
21         struct wl_listener *listener);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif