xdasd_conf.c File Reference

Configuration file access. More...

#include "xdas_base.h"
#include "xdasd_conf.h"
#include "xdasd_list.h"
#include <xdas_debug.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Data Structures

struct  XDProp_tag
 A property list entry structure. More...

Defines

#define strnenv(d, s, n)   ((strncpy((d),(s),(n)-1)[(n)-1] = 0),(d))
#define XDASD_DEF_SLMOD_PATH   LIBDIR "/openxdas/libxdm_syslog.so"

Typedefs

typedef struct XDProp_tag XDProp
 A property list entry structure.

Functions

static XDPropxdasd_conf_find (const char *name)
 Locate a property object by name in the global property list.
static int xdasd_conf_setstr (const char *name, const char *value)
 Set a property from a name/value pair.
static int xdasd_conf_set_defaults (void)
 Set all default configuration values.
char * xdasd_conf_getstr (const char *name, char *buffer, size_t *bufszp)
 Returns a named property value as a string.
int xdasd_conf_getint (const char *name)
 Return a named property value as an integer.
int xdasd_conf_init (const char *cfgpath)
 Initialize or reinitialize property list from file.
void xdasd_conf_exit (void)
 Cleanup existing property list.

Variables

static char g_config [FILENAME_MAX] = ""
 The current configuration file path name.
static XDList g_proplist = {0, 0, 0}
 The global property list.


Detailed Description

Configuration file access.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdasd_conf.c.


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6