File: parseconf.h

package info (click to toggle)
vsftpd 2.0.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 984 kB
  • ctags: 1,059
  • sloc: ansic: 11,743; sh: 86; makefile: 80
file content (21 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef VSF_PARSECONF_H
#define VSF_PARSECONF_H

/* vsf_parseconf_load_file()
 * PURPOSE
 * Parse the given file as a vsftpd config file. If the file cannot be
 * opened for whatever reason, a fatal error is raised. If the file contains
 * any syntax errors, a fatal error is raised.
 * If the call returns (no fatal error raised), then the config file was
 * parsed and the global config settings will have been updated.
 * PARAMETERS
 * p_filename     - the name of the config file to parse
 * errs_fatal     - errors will cause the calling process to exit if not 0
 * NOTES
 * If p_filename is NULL, then the last filename passed to this function is
 * used to reload the configuration details.
 */
void vsf_parseconf_load_file(const char* p_filename, int errs_fatal);

#endif /* VSF_PARSECONF_H */