From 9fbad1544764c515cb1f22bc552f33bb41206e92 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 14 Jun 2023 22:51:13 +0200 Subject: Skeleton structure implementation --- config.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config.c (limited to 'config.c') diff --git a/config.c b/config.c new file mode 100644 index 0000000..f11bbb6 --- /dev/null +++ b/config.c @@ -0,0 +1,29 @@ +#include +#include + +#include "nfcommander.h" +#include "config.h" + +int config_read(char* path){ + //TODO + printf("Reading config file %s\n", path); + + return 0; +} + +char* config_get(char* section, char* property){ + //TODO + printf("Querying for config property %s->%s\n", section, property); + + //TEMP + if(!strcmp(property, "reader")){ + return "yhy"; + } + + return NULL; +} + +void config_free(){ + //TODO + printf("Cleaning up config data\n"); +} -- cgit v1.2.3