Main Page | Modules | Data Structures | File List | Data Fields | Globals

conf.c File Reference

Configuration handling (including XML parsing). More...

#include <config.h>
#include <assert.h>
#include <expat.h>
#include <discover.h>
#include <discover-conf.h>
#include <discover-xml.h>
#include "load-url.h"
#include "url-xml.h"
#include "utils.h"

Go to the source code of this file.

Data Structures

struct  context

Enumerations

enum  state { START, BUSSCAN, DATA_SOURCES }
enum  scan_flag { SCAN_NEVER, SCAN_DEFAULT }

Functions

discover_bus_map_t_real_discover_conf_get_bus_map (discover_bus_t bus, discover_error_t *status)
discover_bus_map_t_real_discover_conf_get_bus_map_by_name (char *name, discover_error_t *status)
void discover_conf_load (discover_error_t *status)
int discover_conf_name_to_bus (char *name, discover_error_t *status)
discover_bus_map_tdiscover_conf_get_full_bus_map (discover_error_t *status)
discover_bus_map_tdiscover_conf_get_bus_map_by_name (char *name, discover_error_t *status)
discover_bus_map_tdiscover_conf_get_bus_map (discover_bus_t bus, discover_error_t *status)
void discover_conf_insert_url (char *url, discover_error_t *status)
void discover_conf_append_url (char *url, discover_error_t *status)
discover_xml_url_tdiscover_conf_get_urls (discover_error_t *status)
void discover_conf_free (void)
char * discover_conf_get_bus_name (discover_bus_t bus)
char * discover_conf_get_filetype_name (discover_filetype_t filetype)


Detailed Description

Configuration handling (including XML parsing).

Configuration-related data is handled here. This file is responsible for loading and parsing the XML data read from the configuration file. This file also holds the routines that are responsible for altering the URL list as requested by the caller.

Definition in file conf.c.


Enumeration Type Documentation

enum scan_flag
 

Define the values for a scannable bus.

Definition at line 75 of file conf.c.

enum state
 

Describe the current state within the XML structure.

Definition at line 72 of file conf.c.


Function Documentation

discover_bus_map_t* _real_discover_conf_get_bus_map discover_bus_t  bus,
discover_error_t status
 

Function that loads the bus map

The "real" get_bus_map functions don't call conf_load(), which is important to avoid infinite loops.

Definition at line 136 of file conf.c.

References BUS_COUNT, discover_error::code, discover_bus_map_t, DISCOVER_EBUSNOTFOUND, and discover_error_t.

Referenced by _real_discover_conf_get_bus_map_by_name().

discover_bus_map_t* _real_discover_conf_get_bus_map_by_name char *  name,
discover_error_t status
 

Internal function that really loads the bus map

Definition at line 150 of file conf.c.

References _real_discover_conf_get_bus_map(), discover_error::code, discover_bus_t, discover_conf_name_to_bus(), and discover_error_t.

Referenced by discover_conf_get_bus_map_by_name().


Generated on Sat Jan 31 14:39:17 2004 for discover by doxygen 1.3.4