Coda Distributed File System
Macros | Functions | Variables
codaconf.h File Reference
#include "coda_string.h"
Include dependency graph for codaconf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CODACONF_STR(var, key, defval)
 
#define CODACONF_INT(var, key, defval)
 

Functions

int codaconf_init_one (const char *conffile)
 
const char * codaconf_lookup (const char *name, const char *defaultvalue)
 
void codaconf_free (void)
 
int codaconf_init (const char *confname)
 
char * codaconf_file (const char *confname)
 

Variables

int codaconf_quiet
 

Macro Definition Documentation

◆ CODACONF_INT

#define CODACONF_INT (   var,
  key,
  defval 
)
Value:
{ \
char t[256]; \
snprintf(t, 255, "%d", defval); \
t[255] = '\0'; \
if (var == 0) { \
var = atoi(codaconf_lookup(key, t)); \
} \
}
const char * codaconf_lookup(const char *name, const char *defaultvalue)
Definition: codaconf.c:292

◆ CODACONF_STR

#define CODACONF_STR (   var,
  key,
  defval 
)
Value:
if (var == NULL || *var == '\0') { \
var = codaconf_lookup(key, defval); \
}
#define NULL
Definition: voltypes.h:44

Function Documentation

◆ codaconf_file()

char * codaconf_file ( const char *  confname)

◆ codaconf_free()

void codaconf_free ( void  )

◆ codaconf_init()

int codaconf_init ( const char *  confname)

◆ codaconf_init_one()

int codaconf_init_one ( const char *  conffile)

◆ codaconf_lookup()

const char * codaconf_lookup ( const char *  name,
const char *  defaultvalue 
)

Variable Documentation

◆ codaconf_quiet

int codaconf_quiet
extern