2020-01-24 23:31:01 +01:00
|
|
|
#ifndef WLR_SCREENCAST_H
|
|
|
|
#define WLR_SCREENCAST_H
|
|
|
|
|
|
|
|
#include "screencast_common.h"
|
|
|
|
|
2020-10-19 23:40:30 +02:00
|
|
|
#define WL_OUTPUT_VERSION 1
|
|
|
|
|
|
|
|
#define SC_MANAGER_VERSION 3
|
|
|
|
#define SC_MANAGER_VERSION_MIN 2
|
|
|
|
|
|
|
|
#define WL_SHM_VERSION 1
|
|
|
|
|
|
|
|
#define XDG_OUTPUT_MANAGER_VERSION 3
|
2020-01-24 23:31:01 +01:00
|
|
|
|
2022-05-05 23:41:53 +02:00
|
|
|
#define LINUX_DMABUF_VERSION 4
|
|
|
|
#define LINUX_DMABUF_VERSION_MIN 3
|
2021-06-17 23:56:47 +02:00
|
|
|
|
2020-03-10 20:46:37 +01:00
|
|
|
struct xdpw_state;
|
|
|
|
|
2020-04-16 10:21:55 +02:00
|
|
|
int xdpw_wlr_screencopy_init(struct xdpw_state *state);
|
|
|
|
void xdpw_wlr_screencopy_finish(struct xdpw_screencast_context *ctx);
|
2020-02-19 22:55:51 +01:00
|
|
|
|
2020-04-16 10:21:55 +02:00
|
|
|
struct xdpw_wlr_output *xdpw_wlr_output_find_by_name(struct wl_list *output_list,
|
2020-03-13 17:43:24 +01:00
|
|
|
const char *name);
|
2020-04-16 10:21:55 +02:00
|
|
|
struct xdpw_wlr_output *xdpw_wlr_output_first(struct wl_list *output_list);
|
|
|
|
struct xdpw_wlr_output *xdpw_wlr_output_find(struct xdpw_screencast_context *ctx,
|
2020-03-13 17:43:24 +01:00
|
|
|
struct wl_output *out, uint32_t id);
|
2022-12-03 23:42:21 +01:00
|
|
|
struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx);
|
2020-02-19 22:55:51 +01:00
|
|
|
|
2021-08-18 22:33:27 +02:00
|
|
|
void xdpw_wlr_frame_finish(struct xdpw_screencast_instance *cast);
|
|
|
|
void xdpw_wlr_frame_start(struct xdpw_screencast_instance *cast);
|
2020-04-16 10:21:55 +02:00
|
|
|
void xdpw_wlr_register_cb(struct xdpw_screencast_instance *cast);
|
2020-01-24 23:31:01 +01:00
|
|
|
|
|
|
|
#endif
|