Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

traces_conf_util.c File Reference


Detailed Description

C file with for accessing config file for traces.

>

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "traces_conf_util.h"

Data Structures

struct  _AlpConfSection
struct  _AlpConfEntry
struct  _AlpConfFile
struct  _AlpPListEntry
struct  _AlpPList

Defines

#define ALP_LIST_REPLACE_DUPS   0x00
#define ALP_LIST_ALLOW_DUPS   0x01
#define START_BUF_SIZE   1024
#define INC_BUF_SIZE   512

Typedefs

typedef _AlpConfFile AlpConfFile
typedef _AlpPListEntry AlpPListEntry
typedef _AlpPList AlpPList
typedef int(* alpEntryCompare )(const void *a, const void *b)
typedef void *(* alpEntryCreate )(void *data)
typedef void(* alpEntryDestroy )(void *data)
typedef _AlpConfSection AlpConfSection
typedef _AlpConfEntry AlpConfEntry

Functions

char * prv_conf_read_string (const char *section, const char *key, const char *xdefault)
int prv_conf_read_int (const char *section, const char *key, int xdefault)
int prv_conf_read_list (const char *section, const char *key, int *argcp, char ***argvp)
int prv_conf_get_sections (int *argcp, char ***argvp)
int prv_conf_get_keys (const char *section, int *argcp, char ***argvp)
int prv_conf_write_string (const char *section, const char *key, const char *value)
int prv_conf_write_int (const char *section, const char *key, int value)
int prv_conf_write_list (const char *section, const char *key, int argc, char **argv)
int prv_conf_delete_section (const char *section)
int prv_conf_delete_key (const char *section, const char *key)
int prv_conf_flush (void)
void prv_conf_close (void)
int prv_conf_getfile (const char *path, const ALPConfType options)


Define Documentation

#define ALP_LIST_ALLOW_DUPS   0x01
 

#define ALP_LIST_REPLACE_DUPS   0x00
 

#define INC_BUF_SIZE   512
 

#define START_BUF_SIZE   1024
 


Typedef Documentation

typedef struct _AlpConfEntry AlpConfEntry
 

typedef struct _AlpConfFile AlpConfFile
 

typedef struct _AlpConfSection AlpConfSection
 

typedef int(* alpEntryCompare)(const void *a, const void *b)
 

typedef void*(* alpEntryCreate)(void *data)
 

typedef void(* alpEntryDestroy)(void *data)
 

typedef struct _AlpPList AlpPList
 

typedef struct _AlpPListEntry AlpPListEntry
 


Function Documentation

void prv_conf_close void   ) 
 

int prv_conf_delete_key const char *  section,
const char *  key
 

int prv_conf_delete_section const char *  section  ) 
 

int prv_conf_flush void   ) 
 

int prv_conf_get_keys const char *  section,
int *  argcp,
char ***  argvp
 

int prv_conf_get_sections int *  argcp,
char ***  argvp
 

int prv_conf_getfile const char *  path,
const ALPConfType  options
 

int prv_conf_read_int const char *  section,
const char *  key,
int  xdefault
 

int prv_conf_read_list const char *  section,
const char *  key,
int *  argcp,
char ***  argvp
 

char* prv_conf_read_string const char *  section,
const char *  key,
const char *  xdefault
 

int prv_conf_write_int const char *  section,
const char *  key,
int  value
 

int prv_conf_write_list const char *  section,
const char *  key,
int  argc,
char **  argv
 

int prv_conf_write_string const char *  section,
const char *  key,
const char *  value
 


Generated on Sat Dec 16 20:29:49 2006 for hiker-0.9 by  doxygen 1.4.4