diff options
author | cbdev <cb@cbcdn.com> | 2023-06-14 22:51:13 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2023-06-14 22:51:13 +0200 |
commit | 9fbad1544764c515cb1f22bc552f33bb41206e92 (patch) | |
tree | 36b66aee2f956197d28621ac96a922ecee1e2f21 /config.c | |
parent | 1f22af635893d4c3221dffca8f05ea3bb8870028 (diff) | |
download | nfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.tar.gz nfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.tar.bz2 nfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.zip |
Skeleton structure implementation
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 29 |
1 files changed, 29 insertions, 0 deletions
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 <stdio.h> +#include <string.h> + +#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"); +} |