2021-03-03 10:29:56 +01:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
|
|
|
struct config_screencast {
|
|
|
|
char *output_name;
|
2020-12-23 19:47:10 +01:00
|
|
|
double max_fps;
|
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
|