wlmaker
Loading...
Searching...
No Matches
dblbuf.h
Go to the documentation of this file.
1/* ========================================================================= */
23#ifndef __WLCL_DBLBUF_H__
24#define __WLCL_DBLBUF_H__
25
26#include <libbase/libbase.h>
27#include <stdbool.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
33struct wl_shm;
34struct wl_surface;
35
38
41 bs_gfxbuf_t *gfxbuf_ptr,
42 void *ud_ptr);
43
57 const char *app_id_ptr,
58 struct wl_surface *wl_surface_ptr,
59 struct wl_shm *wl_shm_ptr,
60 unsigned width,
61 unsigned height);
62
64void wlcl_dblbuf_destroy(wlcl_dblbuf_t *dblbuf_ptr);
65
87 wlcl_dblbuf_t *dblbuf_ptr,
89 void *callback_ud_ptr);
90
91#ifdef __cplusplus
92} // extern "C"
93#endif // __cplusplus
94
95#endif /* __WLCL_DBLBUF_H__ */
96/* == End of dblbuf_buffer.h =============================================== */
void wlcl_dblbuf_destroy(wlcl_dblbuf_t *dblbuf_ptr)
Definition dblbuf.c:178
void wlcl_dblbuf_register_ready_callback(wlcl_dblbuf_t *dblbuf_ptr, wlcl_dblbuf_ready_callback_t callback, void *callback_ud_ptr)
Definition dblbuf.c:200
struct _wlcl_dblbuf_t wlcl_dblbuf_t
Definition dblbuf.h:37
wlcl_dblbuf_t * wlcl_dblbuf_create(const char *app_id_ptr, struct wl_surface *wl_surface_ptr, struct wl_shm *wl_shm_ptr, unsigned width, unsigned height)
Definition dblbuf.c:122
bool(* wlcl_dblbuf_ready_callback_t)(bs_gfxbuf_t *gfxbuf_ptr, void *ud_ptr)
Definition dblbuf.h:40
Definition dblbuf.c:55
struct wl_surface * wl_surface_ptr
Definition dblbuf.c:82
wlcl_dblbuf_ready_callback_t callback
Definition dblbuf.c:77
void * callback_ud_ptr
Definition dblbuf.c:79
unsigned width
Definition dblbuf.c:57
unsigned height
Definition dblbuf.c:59