mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-06 00:35:58 +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.
24 lines
520 B
C
24 lines
520 B
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#include "logger.h"
|
|
#include "screencast_common.h"
|
|
|
|
struct config_screencast {
|
|
char *output_name;
|
|
double max_fps;
|
|
char *exec_before;
|
|
char *exec_after;
|
|
char *chooser_cmd;
|
|
enum xdpw_chooser_types chooser_type;
|
|
};
|
|
|
|
struct xdpw_config {
|
|
struct config_screencast screencast_conf;
|
|
};
|
|
|
|
void print_config(enum LOGLEVEL loglevel, struct xdpw_config *config);
|
|
void finish_config(struct xdpw_config *config);
|
|
void init_config(char ** const configfile, struct xdpw_config *config);
|
|
|
|
#endif
|