mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
ext-image-capture-source-v1: add base interface
This commit is contained in:
parent
eb85831284
commit
dadcbf65e6
5 changed files with 163 additions and 0 deletions
30
include/wlr/interfaces/wlr_ext_image_capture_source_v1.h
Normal file
30
include/wlr/interfaces/wlr_ext_image_capture_source_v1.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_INTERFACES_WLR_EXT_IMAGE_CAPTURE_SOURCE_V1_H
|
||||
#define WLR_INTERFACES_WLR_EXT_IMAGE_CAPTURE_SOURCE_V1_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_ext_image_capture_source_v1.h>
|
||||
|
||||
struct wlr_ext_image_copy_capture_frame_v1;
|
||||
|
||||
struct wlr_ext_image_capture_source_v1_interface {
|
||||
void (*schedule_frame)(struct wlr_ext_image_capture_source_v1 *source);
|
||||
void (*copy_frame)(struct wlr_ext_image_capture_source_v1 *source,
|
||||
struct wlr_ext_image_copy_capture_frame_v1 *dst_frame,
|
||||
struct wlr_ext_image_capture_source_v1_frame_event *frame_event);
|
||||
};
|
||||
|
||||
void wlr_ext_image_capture_source_v1_init(struct wlr_ext_image_capture_source_v1 *source,
|
||||
const struct wlr_ext_image_capture_source_v1_interface *impl);
|
||||
void wlr_ext_image_capture_source_v1_finish(struct wlr_ext_image_capture_source_v1 *source);
|
||||
bool wlr_ext_image_capture_source_v1_create_resource(struct wlr_ext_image_capture_source_v1 *source,
|
||||
struct wl_client *client, uint32_t new_id);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue