version 1.11, 1999/11/24 00:26:02 |
version 1.12, 1999/11/24 19:53:49 |
|
|
} Options; |
} Options; |
|
|
|
|
/* Initializes options to special values that indicate that they have not |
/* |
yet been set. Read_config_file will only set options with this value. |
* Initializes options to special values that indicate that they have not yet |
Options are processed in the following order: command line, user config |
* been set. Read_config_file will only set options with this value. Options |
file, system config file. Last, fill_default_options is called. */ |
* are processed in the following order: command line, user config file, |
|
* system config file. Last, fill_default_options is called. |
|
*/ |
void initialize_options(Options * options); |
void initialize_options(Options * options); |
|
|
/* Called after processing other sources of option data, this fills those |
/* |
options for which no value has been specified with their default values. */ |
* Called after processing other sources of option data, this fills those |
|
* options for which no value has been specified with their default values. |
|
*/ |
void fill_default_options(Options * options); |
void fill_default_options(Options * options); |
|
|
/* Processes a single option line as used in the configuration files. |
/* |
This only sets those values that have not already been set. |
* Processes a single option line as used in the configuration files. This |
Returns 0 for legal options */ |
* only sets those values that have not already been set. Returns 0 for legal |
|
* options |
|
*/ |
int |
int |
process_config_line(Options * options, const char *host, |
process_config_line(Options * options, const char *host, |
char *line, const char *filename, int linenum, |
char *line, const char *filename, int linenum, |
int *activep); |
int *activep); |
|
|
/* Reads the config file and modifies the options accordingly. Options should |
/* |
already be initialized before this call. This never returns if there |
* Reads the config file and modifies the options accordingly. Options |
is an error. If the file does not exist, this returns immediately. */ |
* should already be initialized before this call. This never returns if |
|
* there is an error. If the file does not exist, this returns immediately. |
|
*/ |
void |
void |
read_config_file(const char *filename, const char *host, |
read_config_file(const char *filename, const char *host, |
Options * options); |
Options * options); |
|
|
/* Adds a local TCP/IP port forward to options. Never returns if there |
/* |
is an error. */ |
* Adds a local TCP/IP port forward to options. Never returns if there is an |
|
* error. |
|
*/ |
void |
void |
add_local_forward(Options * options, int port, const char *host, |
add_local_forward(Options * options, int port, const char *host, |
int host_port); |
int host_port); |
|
|
/* Adds a remote TCP/IP port forward to options. Never returns if there |
/* |
is an error. */ |
* Adds a remote TCP/IP port forward to options. Never returns if there is |
|
* an error. |
|
*/ |
void |
void |
add_remote_forward(Options * options, int port, const char *host, |
add_remote_forward(Options * options, int port, const char *host, |
int host_port); |
int host_port); |
|
|
|
|
#endif /* READCONF_H */ |
#endif /* READCONF_H */ |