summaryrefslogtreecommitdiff
path: root/cfgfile.h
diff options
context:
space:
mode:
authorGraydon, Tracy <tracy.graydon@intel.com>2013-01-31 17:53:28 -0800
committerGraydon, Tracy <tracy.graydon@intel.com>2013-01-31 17:53:28 -0800
commit2f9aed644fc28f5bece6ab1711a9fca7362aeceb (patch)
treeccd6c62f1adf3255ed0b2095feab505e4611374e /cfgfile.h
downloadiftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.tar.gz
iftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.tar.bz2
iftop-2f9aed644fc28f5bece6ab1711a9fca7362aeceb.zip
Diffstat (limited to 'cfgfile.h')
-rw-r--r--cfgfile.h26
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_ */