wlmaker
Loading...
Searching...
No Matches
apps
libwlclient
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
26
extern
"C"
{
27
#endif
// __cplusplus
28
30
typedef
struct
_wlclient_buffer_t
wlclient_buffer_t
;
31
33
struct
wl_surface;
34
36
typedef
void (*
wlclient_buffer_ready_callback_t
)(
void
*ud_ptr);
37
50
wlclient_buffer_t
*
wlclient_buffer_create
(
51
const
wlclient_t
*wlclient_ptr,
52
unsigned
width,
53
unsigned
height,
54
wlclient_buffer_ready_callback_t
ready_callback,
55
void
*ready_callback_ud_ptr);
56
62
void
wlclient_buffer_destroy
(
63
wlclient_buffer_t
*buffer_ptr);
64
71
void
wlclient_buffer_attach_to_surface_and_commit
(
72
wlclient_buffer_t
*buffer_ptr,
73
struct
wl_surface *wl_surface_ptr);
74
84
bs_gfxbuf_t *
bs_gfxbuf_from_wlclient_buffer
(
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_create
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
wlclient_buffer_destroy
void wlclient_buffer_destroy(wlclient_buffer_t *buffer_ptr)
Definition
buffer.c:164
bs_gfxbuf_from_wlclient_buffer
bs_gfxbuf_t * bs_gfxbuf_from_wlclient_buffer(wlclient_buffer_t *buffer_ptr)
Definition
buffer.c:176
wlclient_buffer_ready_callback_t
void(* wlclient_buffer_ready_callback_t)(void *ud_ptr)
Definition
buffer.h:36
wlclient_buffer_attach_to_surface_and_commit
void wlclient_buffer_attach_to_surface_and_commit(wlclient_buffer_t *buffer_ptr, struct wl_surface *wl_surface_ptr)
Definition
buffer.c:183
libwlclient.h
_wlclient_buffer_t
Definition
buffer.c:49
_wlclient_t
Definition
client.c:36
Generated by
1.10.0