2021-03-03 10:29:56 +01:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#include "logger.h"
|
2020-10-10 16:20:06 +02:00
|
|
|
#include "screencast_common.h"
|
2021-03-03 10:29:56 +01:00
|
|
|
|
|
|
|
struct config_screencast {
|
|
|
|
char *output_name;
|
2020-12-23 19:47:10 +01:00
|
|
|
double max_fps;
|
2021-03-15 15:16:50 +01:00
|
|
|
char *exec_before;
|
|
|
|
char *exec_after;
|
2020-10-10 16:20:06 +02:00
|
|
|
char *chooser_cmd;
|
|
|
|
enum xdpw_chooser_types chooser_type;
|
2021-03-03 10:29:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|