Collaboration diagram for Configuration Subsystem:
![]() |
Functions | |
bs_status | init_options (int argc, const char *argv[], apr_pool_t *mp) |
Variables | |
unsigned | global_listen_port |
unsigned | global_max_connections |
char * | global_conffile |
bs_list * | global_module_names_list |
char * | global_modules_dir |
bs_list * | global_node_address_list |
bs_status init_options | ( | int | argc, | |
const char * | argv[], | |||
apr_pool_t * | mp | |||
) |
Process the commandline options.
argc | Number of cli arguments | |
argv | The actual arguments |
Definition at line 108 of file options.c.
References add_node_to_global_list(), BIOSPHERE_VERSION_STRING, BS_ERROR, BS_OK, FALSE, global_conffile, global_listen_port, global_max_connections, global_module_names_list, init_defaults(), list_append(), runtestsuite::rv, and TRUE.
Referenced by main().
Here is the call graph for this function:
char* global_conffile |
The config file to use
Definition at line 52 of file options.c.
Referenced by init_defaults(), and init_options().
unsigned global_listen_port |
Port on which the daemon will listen (see settings.h for default)
Definition at line 50 of file options.c.
Referenced by init_defaults(), init_listen_socket(), and init_options().
unsigned global_max_connections |
The maximum number of incoming connections that will be accepted.
Definition at line 51 of file options.c.
Referenced by init_defaults(), and init_options().
A list with the names (paths) of the modules to load.
Definition at line 53 of file options.c.
Referenced by init_defaults(), init_module(), and init_options().
char* global_modules_dir |
The default directory to look for modules. If only the module name is specified, this directory will be searched for the module.
Definition at line 54 of file options.c.
Referenced by init_defaults(), load_module(), and set_definitions().
A list with addresses of other Bio-SPHERE nodes. These will be automatically added at startup.
Definition at line 55 of file options.c.
Referenced by init_defaults().