diff options
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"); +} |