Omega Security Services 0.7.3

config.c File Reference

#include "stdinc.h"
#include "configparse.h"
#include "server.h"

Go to the source code of this file.

Defines

#define PARAM_ERROR(ce, s)
#define INVALID_PARAM(ce, s)
#define FOREACH_PARAM(ce)   for (ce = ce->ce_entries; ce; ce = ce->ce_next)

Functions

void InitDefaults ()
void VerifyConf ()
void init_config ()

Variables

int modcnt = 0
char p10_id [3]

Define Documentation

#define FOREACH_PARAM (   ce)    for (ce = ce->ce_entries; ce; ce = ce->ce_next)

Definition at line 55 of file config.c.

#define INVALID_PARAM (   ce,
 
)
Value:
{ fprintf (stderr, "%s:%i: Invalid parameter %s " \
                                    "config option: %s\n", (ce)->ce_fileptr->cf_filename, \
                                    (ce)->ce_varlinenum, (s), (ce)->ce_varname); \ }

Definition at line 51 of file config.c.

#define PARAM_ERROR (   ce,
 
)
Value:
{ fprintf (stderr, "%s:%i: no parameter for %s " \
                                    "config option: %s\n", (ce)->ce_fileptr->cf_filename, \
                                    (ce)->ce_varlinenum, (s), (ce)->ce_varname); }

Definition at line 46 of file config.c.


Function Documentation

void init_config ( )

Definition at line 177 of file config.c.

void InitDefaults ( )

<server name="security.network.tld" sid="44x" numeric="9"> <link name="dev.ircnetwork.tld" port="7020" pass="l|nkp@55">

Definition at line 66 of file config.c.

References CfgSettings, datadir, DBDIR, Conf::desc, logclients, logcmds, Conf::network, Conf::numeric, Conf::operonly, Conf::pass, Conf::port, Conf::privmsg, Conf::servername, Conf::sid, and Conf::uplink.

Referenced by main().


Variable Documentation

int modcnt = 0

Definition at line 57 of file config.c.

char p10_id[3]

Definition at line 47 of file tools.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines