xdg-desktop-portal-hyprland/include/config.h
David96 4c2d8fc808 Add exec_before and exec_after
Adds an option to execute some program before and after screencast (e.g.
for disabling notifications during a cast)
2021-03-16 23:44:08 +01:00

21 lines
430 B
C

#ifndef CONFIG_H
#define CONFIG_H
#include "logger.h"
struct config_screencast {
char *output_name;
double max_fps;
char *exec_before;
char *exec_after;
};
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