File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / iftop / cfgfile.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 14:04:50 2016 UTC (8 years, 2 months ago) by misho
Branches: iftop, MAIN
CVS tags: v1_0rc4, HEAD
iftop 1.0pre4

/*
 * cfgfile.h:
 *
 * Copyright (c) 2003 DecisionSoft Ltd.
 *
 */

#ifndef __CFGFILE_H_ /* include guard */
#define __CFGFILE_H_

typedef struct {
    char *name;
    int value;
} config_enumeration_type;

int read_config();

char *config_get_string(const char *directive);
int config_get_bool(const char *directive);
int config_get_int(const char *directive, int *value);
int config_get_float(const char *directive, float *value);
int config_init();
void config_set_string(const char *directive, const char* s);
int config_get_enum(const char *directive, config_enumeration_type *enumeration, int *value);



#endif /* __CFGFILE_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>