2020-01-24 23:31:01 +01:00
|
|
|
#ifndef WLR_SCREENCAST_H
|
|
|
|
#define WLR_SCREENCAST_H
|
|
|
|
|
|
|
|
#include "wlr-screencopy-unstable-v1-client-protocol.h"
|
2020-02-19 22:55:51 +01:00
|
|
|
#include "xdg-output-unstable-v1-client-protocol.h"
|
2020-01-24 23:31:01 +01:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <wayland-client-protocol.h>
|
|
|
|
|
2020-03-06 20:41:53 +01:00
|
|
|
#include "pipewire_screencast.h"
|
2020-01-24 23:31:01 +01:00
|
|
|
#include "screencast_common.h"
|
|
|
|
|
|
|
|
#define SC_MANAGER_VERSION 2
|
|
|
|
|
2020-03-10 20:46:37 +01:00
|
|
|
struct xdpw_state;
|
|
|
|
|
|
|
|
void wlr_frame_free(struct xdpw_state *state);
|
|
|
|
int wlr_screencopy_init(struct xdpw_state *state);
|
2020-01-24 23:31:01 +01:00
|
|
|
void wlr_screencopy_uninit(struct screencast_context *ctx);
|
2020-02-19 22:55:51 +01:00
|
|
|
|
2020-03-13 17:43:24 +01:00
|
|
|
struct wayland_output *wlr_output_find_by_name(struct wl_list *output_list,
|
|
|
|
const char *name);
|
2020-02-19 22:55:51 +01:00
|
|
|
struct wayland_output *wlr_output_find(struct screencast_context *ctx,
|
2020-03-13 17:43:24 +01:00
|
|
|
struct wl_output *out, uint32_t id);
|
2020-02-19 22:55:51 +01:00
|
|
|
struct wayland_output *wlr_output_first(struct wl_list *output_list);
|
|
|
|
|
2020-03-10 20:46:37 +01:00
|
|
|
void wlr_register_cb(struct xdpw_state *state);
|
2020-01-24 23:31:01 +01:00
|
|
|
|
|
|
|
#endif
|