config.h File Reference

This file introduces a structure storing configuration options we parse from the command line and some functions for parsing and setting of default values. More...

#include "frametypes.h"

Include dependency graph for config.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  config_t
 Structure representing configuration. More...

Defines

#define CONFIG_STRING_SIZE   255
 Default size of the strings in the configuration.

Functions

void initDefaultConfig (config_t *config)
 Initializes the given config with default values.
int processCmdLineOpts (int argc, char *argv[], config_t *config)
 Process command line options and store the parsed values in the given config structure.


Detailed Description

This file introduces a structure storing configuration options we parse from the command line and some functions for parsing and setting of default values.

Version:
Id
config.h,v 1.4 2008/09/18 12:59:01 prokop Exp

Definition in file config.h.


Define Documentation

#define CONFIG_STRING_SIZE   255

Default size of the strings in the configuration.

Definition at line 34 of file config.h.


Function Documentation

void initDefaultConfig ( config_t config  ) 

Initializes the given config with default values.

Parameters:
config Pointer to a config structure which should be initialized.

Definition at line 44 of file config.c.

int processCmdLineOpts ( int  argc,
char *  argv[],
config_t config 
)

Process command line options and store the parsed values in the given config structure.

This function also does some error checking on options.

Parameters:
argc Number of command line arguments, as for main()
argv Array of command line strings, as for main()
config Pointer to config structure where parsed values will be stored. You probably want to set default values for the config first.
Returns:
1 on successfull parsing or 0 if there were errors.

Definition at line 66 of file config.c.


Generated on Sun Sep 28 21:20:01 2008 for Guard by  doxygen 1.5.6