add: config loading

This commit is contained in:
Tobias Reisinger 2020-04-17 01:38:25 +02:00
parent 3cd6668f9c
commit 25ba0ff723
22 changed files with 5799 additions and 75 deletions
include/models

View file

@ -48,8 +48,7 @@ typedef enum
DB_KEY_CONTROLLER_NAME = 1,
DB_KEY_CONTROLLER_COMMAND_PORT = 2,
DB_KEY_CONTROLLER_DISCOVERY_PORT = 3,
DB_KEY_CONTROLLER_RELAY_COUNT = 4,
DB_KEY_CONTROLLER_RELAYS = 5,
DB_KEY_CONTROLLER_RELAYS = 4,
} db_key_controller_e;
/**

View file

@ -5,7 +5,7 @@
#include <time.h>
#include <lmdb.h>
#include <config.h>
#include <constants.h>
#include <models/schedule.h>
typedef struct