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 (7 years, 8 months ago) by misho
Branches: iftop, MAIN
CVS tags: v1_0rc4, HEAD
iftop 1.0pre4

    1: /*
    2:  * cfgfile.h:
    3:  *
    4:  * Copyright (c) 2003 DecisionSoft Ltd.
    5:  *
    6:  */
    7: 
    8: #ifndef __CFGFILE_H_ /* include guard */
    9: #define __CFGFILE_H_
   10: 
   11: typedef struct {
   12:     char *name;
   13:     int value;
   14: } config_enumeration_type;
   15: 
   16: int read_config();
   17: 
   18: char *config_get_string(const char *directive);
   19: int config_get_bool(const char *directive);
   20: int config_get_int(const char *directive, int *value);
   21: int config_get_float(const char *directive, float *value);
   22: int config_init();
   23: void config_set_string(const char *directive, const char* s);
   24: int config_get_enum(const char *directive, config_enumeration_type *enumeration, int *value);
   25: 
   26: 
   27: 
   28: #endif /* __CFGFILE_H_ */

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