abyss_conf.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <xmlrpc-c/config.h>
#include "abyss_xmlrpc_int.h"
#include <xmlrpc-c/abyss.h>
#include "abyss_trace.h"
#include "abyss_server.h"
#include "abyss_http.h"

Include dependency graph for abyss_conf.c:

Go to the source code of this file.

Functions

static void chdirx (const char *const newdir, abyss_bool *const successP)
static char * ConfGetToken (char **p)
static abyss_bool ConfNextToken (char **p)
static abyss_bool ConfReadBool (char *p, abyss_bool *b)
static abyss_bool ConfReadInt (const char *const p, int32_t *const n, int32_t const min, int32_t const max)
static abyss_bool ConfReadLine (TFile *f, char *buffer, uint32_t len)
abyss_bool ConfReadServerFile (const char *const filename, TServer *const serverP)
static void parsePidfile (const char *const p, struct _TServer *const srvP)
static void parseUser (const char *const p, struct _TServer *const srvP)
static void readMIMETypesFile (const char *const filename, MIMEType **const MIMETypePP)


Function Documentation

static void chdirx ( const char *const   newdir,
abyss_bool *const   successP 
) [static]

Definition at line 234 of file abyss_conf.c.

Referenced by ConfReadServerFile().

static char* ConfGetToken ( char **  p  )  [static]

Definition at line 112 of file abyss_conf.c.

References CR, LF, and NULL.

Referenced by ConfReadServerFile(), and readMIMETypesFile().

static abyss_bool ConfNextToken ( char **  p  )  [static]

Definition at line 96 of file abyss_conf.c.

References FALSE, and TRUE.

Referenced by ConfReadServerFile(), and readMIMETypesFile().

static abyss_bool ConfReadBool ( char *  p,
abyss_bool *  b 
) [static]

Definition at line 162 of file abyss_conf.c.

References FALSE, and TRUE.

Referenced by ConfReadServerFile().

static abyss_bool ConfReadInt ( const char *const   p,
int32_t *const   n,
int32_t const   min,
int32_t const   max 
) [static]

Definition at line 139 of file abyss_conf.c.

Referenced by ConfReadServerFile(), and parseUser().

static abyss_bool ConfReadLine ( TFile f,
char *  buffer,
uint32_t  len 
) [static]

Definition at line 61 of file abyss_conf.c.

References CR, FALSE, FileRead(), LF, and TRUE.

Referenced by ConfReadServerFile(), and readMIMETypesFile().

abyss_bool ConfReadServerFile ( const char *const   filename,
TServer *const   serverP 
)

static void parsePidfile ( const char *const   p,
struct _TServer *const   srvP 
) [static]

Definition at line 275 of file abyss_conf.c.

References FileOpenCreate(), _TServer::pidfile, and TraceMsg().

Referenced by ConfReadServerFile().

static void parseUser ( const char *const   p,
struct _TServer *const   srvP 
) [static]

Definition at line 247 of file abyss_conf.c.

References ConfReadInt(), _TServer::gid, TraceExit(), TraceMsg(), and _TServer::uid.

Referenced by ConfReadServerFile().

static void readMIMETypesFile ( const char *const   filename,
MIMEType **const   MIMETypePP 
) [static]


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6