pihelper-c/PiHelper/config.h
William Brawner b88fba9644 Initial commit
This code is absolutely horrendous in its current state, with poor error
handling (where it's even present) and memory leaks galore. USE AT YOUR
OWN RISK. I certainly won't be publishing it anywhere or speaking of it
until it's in a much better state.
2019-12-30 14:18:57 -06:00

19 lines
385 B
C

#ifndef PIHELPER_CONFIG
#define PIHELPER_CONFIG
#include <openssl/sha.h>
static char * DEFAULT_CONFIG_PATH = "/.config/pihelper.conf";
typedef struct {
char * host;
char * api_key;
} pihole_config;
void save_config(pihole_config * config, char * config_path);
pihole_config * read_config(char * config_path);
pihole_config * configure_pihole(char * config_path);
#endif