/Users/maurits/Documents/studie/afstuderen/biosphere/daemon/options.c File Reference

#include "options.h"
#include "node.h"
#include "settings.h"
#include <biosphere.h>
#include <list.h>
#include <apr_pools.h>
#include <apr_getopt.h>
#include <apr_strings.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for options.c:

Go to the source code of this file.

Functions

static void add_node_to_global_list (const char *optarg, apr_pool_t *mp)
static void init_defaults (apr_pool_t *mp)
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 = NULL
bs_listglobal_module_names_list = NULL
char * global_modules_dir = NULL
bs_listglobal_node_address_list = NULL


Function Documentation

static void add_node_to_global_list ( const char *  optarg,
apr_pool_t *  mp 
) [static]

Definition at line 58 of file options.c.

References add_node(), BS_OK, and runtestsuite::rv.

Referenced by init_options().

Here is the call graph for this function:

static void init_defaults ( apr_pool_t *  mp  )  [static]

Initialize the options with their default values from settings.h. TODO In the future, a config file will be parsed and used as well. Please note that this function does not need to be thread safe since it will only be called before multithreaded execution starts.

Parameters:
mp Memory pool to allocate from

Definition at line 92 of file options.c.

References BIOSPHERED_CONFFILE, BIOSPHERED_MAX_CONNECTIONS, BIOSPHERED_MODULES_DIR, BIOSPHERED_PORT, global_conffile, global_listen_port, global_max_connections, global_module_names_list, global_modules_dir, global_node_address_list, and new_list().

Referenced by init_options().

Here is the call graph for this function:


Generated on Tue Jul 17 09:51:08 2007 for Bio-SPHERE by  doxygen 1.5.1