William Brawner
b88fba9644
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.
19 lines
385 B
C
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
|
|
|