1 #ifndef VSF_PARSECONF_H 2 #define VSF_PARSECONF_H 3 4 /* vsf_parseconf_load_file() 5 * PURPOSE 6 * Parse the given file as a vsftpd config file. If the file cannot be 7 * opened for whatever reason, a fatal error is raised. If the file contains 8 * any syntax errors, a fatal error is raised. 9 * If the call returns (no fatal error raised), then the config file was 10 * parsed and the global config settings will have been updated. 11 * PARAMETERS 12 * p_filename - the name of the config file to parse 13 * errs_fatal - errors will cause the calling process to exit if not 0 14 * NOTES 15 * If p_filename is NULL, then the last filename passed to this function is 16 * used to reload the configuration details. 17 */ 18 void vsf_parseconf_load_file(const char* p_filename, int errs_fatal); 19 20 /* vsf_parseconf_parse_setting() 21 * PURPOSE 22 * Handle a given name=value setting and apply it. Any whitespace at the 23 * beginning is skipped. 24 * PARAMETERS 25 * p_settings - the name=value pair to apply 26 * errs_fatal - errors will cause the calling process to exit if not 0 27 */ 28 void vsf_parseconf_load_setting(const char* p_setting, int errs_fatal); 29 30 #endif /* VSF_PARSECONF_H */ 31 32