mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
9d78b21695
Supports "dmenu" chooser type, which is called with a dmenu type list piped to stdin, "simple" type, which recieves nothing on stdin and default, which tries the hardcoded choosers. Choosers are required to return the name of the choosen output as given by the xdg-output protocol. Thanks to piater for closing overlooked pipes. Thanks to ericonr for suggestions regarding fork and pipes.
30 lines
910 B
C
30 lines
910 B
C
#ifndef WLR_SCREENCAST_H
|
|
#define WLR_SCREENCAST_H
|
|
|
|
#include "screencast_common.h"
|
|
|
|
#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
|
|
|
|
struct xdpw_state;
|
|
|
|
int xdpw_wlr_screencopy_init(struct xdpw_state *state);
|
|
void xdpw_wlr_screencopy_finish(struct xdpw_screencast_context *ctx);
|
|
|
|
struct xdpw_wlr_output *xdpw_wlr_output_find_by_name(struct wl_list *output_list,
|
|
const char *name);
|
|
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,
|
|
struct wl_output *out, uint32_t id);
|
|
struct xdpw_wlr_output *xdpw_wlr_output_chooser(struct xdpw_screencast_context *ctx);
|
|
|
|
void xdpw_wlr_frame_free(struct xdpw_screencast_instance *cast);
|
|
void xdpw_wlr_register_cb(struct xdpw_screencast_instance *cast);
|
|
|
|
#endif
|