wlmaker
Loading...
Searching...
No Matches
buffer.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLCLIENT_BUFFER_H__
21#define __WLCLIENT_BUFFER_H__
22
23#include "libwlclient.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif // __cplusplus
28
31
33struct wl_surface;
34
36typedef void (*wlclient_buffer_ready_callback_t)(void *ud_ptr);
37
51 const wlclient_t *wlclient_ptr,
52 unsigned width,
53 unsigned height,
55 void *ready_callback_ud_ptr);
56
63 wlclient_buffer_t *buffer_ptr);
64
72 wlclient_buffer_t *buffer_ptr,
73 struct wl_surface *wl_surface_ptr);
74
85 wlclient_buffer_t *buffer_ptr);
86
87#ifdef __cplusplus
88} // extern "C"
89#endif // __cplusplus
90
91#endif /* __WLCLIENT_BUFFER_H__ */
92/* == End of buffer.h ====================================================== */
wlclient_buffer_t * wlclient_buffer_create(const wlclient_t *wlclient_ptr, unsigned width, unsigned height, wlclient_buffer_ready_callback_t ready_callback, void *ready_callback_ud_ptr)
Definition buffer.c:96
void wlclient_buffer_destroy(wlclient_buffer_t *buffer_ptr)
Definition buffer.c:164
bs_gfxbuf_t * bs_gfxbuf_from_wlclient_buffer(wlclient_buffer_t *buffer_ptr)
Definition buffer.c:176
void(* wlclient_buffer_ready_callback_t)(void *ud_ptr)
Definition buffer.h:36
void wlclient_buffer_attach_to_surface_and_commit(wlclient_buffer_t *buffer_ptr, struct wl_surface *wl_surface_ptr)
Definition buffer.c:183
Definition buffer.c:49
Definition client.c:36