2021-02-17 02:22:28 +01:00
|
|
|
#ifndef TYPES_WLR_BUFFER
|
|
|
|
#define TYPES_WLR_BUFFER
|
|
|
|
|
|
|
|
#include <wlr/types/wlr_buffer.h>
|
2021-04-26 19:48:35 +02:00
|
|
|
|
2021-02-17 02:22:28 +01:00
|
|
|
/**
|
|
|
|
* Access a pointer to the allocated data from the underlying implementation,
|
2021-04-26 19:48:35 +02:00
|
|
|
* its format and its stride.
|
2021-02-17 02:22:28 +01:00
|
|
|
*
|
|
|
|
* The returned pointer should be pointing to a valid memory location for read
|
|
|
|
* and write operations.
|
|
|
|
*/
|
|
|
|
bool buffer_get_data_ptr(struct wlr_buffer *buffer, void **data,
|
2021-04-26 19:48:35 +02:00
|
|
|
uint32_t *format, size_t *stride);
|
2021-02-17 02:22:28 +01:00
|
|
|
|
|
|
|
#endif
|