diff options
author | Graydon, Tracy <tracy.graydon@intel.com> | 2013-01-31 17:53:28 -0800 |
---|---|---|
committer | Graydon, Tracy <tracy.graydon@intel.com> | 2013-01-31 17:53:28 -0800 |
commit | 2f9aed644fc28f5bece6ab1711a9fca7362aeceb (patch) | |
tree | ccd6c62f1adf3255ed0b2095feab505e4611374e /cfgfile.h | |
download | iftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.tar.gz iftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.tar.bz2 iftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.zip |
Diffstat (limited to 'cfgfile.h')
-rw-r--r-- | cfgfile.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cfgfile.h b/cfgfile.h new file mode 100644 index 0000000..38532ad --- /dev/null +++ b/cfgfile.h @@ -0,0 +1,26 @@ +/* + * 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(); + + + +#endif /* __CFGFILE_H_ */ |