This repository has been archived on 2021-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
modetw/src/conf.h

39 lines
1005 B
C

#ifndef CONF_H
#define CONF_H
/**
* Verifies if the key is correctly specified in the configuration file.
* @param conf conf as initialised file_t
* @param key key
* @param value value
* @return 1 No, @value set to NULL
* 0 Yes, @value set to defined value
* -1 Error, @value set to NULL
*/
int
conf_verify_key(const char *conf, const char *key, char *value);
/**
* Verifies the absolute path of the game directory
* @param conf conf as initialised file_t
* @param value value
* @return 1 No, @value set to NULL
* 0 Yes, @value set to defined value
* -1 Error, @value set to NULL
*/
int
conf_verifygamedir(const char *conf, char *dirname);
/**
* Verifies the absolute path of the config directory
* @param conf conf as initialised file_t
* @param value value
* @return 1 No, @value set to NULL
* 0 Yes, @value set to defined value
* -1 Error, @value set to NULL
*/
int
conf_verifyconfigdir(const char *conf, char *dirname);
#endif