wlmaker
Loading...
Searching...
No Matches
dblbuf.h
Go to the documentation of this file.
1/* ========================================================================= */
22#ifndef __WLCL_DBLBUF_H__
23#define __WLCL_DBLBUF_H__
24
25#include <libbase/libbase.h>
26#include <stdbool.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif // __cplusplus
31
32struct wl_shm;
33struct wl_surface;
34
37
40 bs_gfxbuf_t *gfxbuf_ptr,
41 void *ud_ptr);
42
56 const char *app_id_ptr,
57 struct wl_surface *wl_surface_ptr,
58 struct wl_shm *wl_shm_ptr,
59 unsigned width,
60 unsigned height);
61
63void wlcl_dblbuf_destroy(wlcl_dblbuf_t *dblbuf_ptr);
64
86 wlcl_dblbuf_t *dblbuf_ptr,
88 void *callback_ud_ptr);
89
90#ifdef __cplusplus
91} // extern "C"
92#endif // __cplusplus
93
94#endif /* __WLCL_DBLBUF_H__ */
95/* == End of dblbuf_buffer.h =============================================== */
void wlcl_dblbuf_destroy(wlcl_dblbuf_t *dblbuf_ptr)
Definition dblbuf.c:177
void wlcl_dblbuf_register_ready_callback(wlcl_dblbuf_t *dblbuf_ptr, wlcl_dblbuf_ready_callback_t callback, void *callback_ud_ptr)
Definition dblbuf.c:199
struct _wlcl_dblbuf_t wlcl_dblbuf_t
Definition dblbuf.h:36
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:121
bool(* wlcl_dblbuf_ready_callback_t)(bs_gfxbuf_t *gfxbuf_ptr, void *ud_ptr)
Definition dblbuf.h:39
Definition dblbuf.c:54
struct wl_surface * wl_surface_ptr
Definition dblbuf.c:81
wlcl_dblbuf_ready_callback_t callback
Definition dblbuf.c:76
void * callback_ud_ptr
Definition dblbuf.c:78
unsigned width
Definition dblbuf.c:56
unsigned height
Definition dblbuf.c:58