Add more functions to manage ini file.
[bertos.git] / bertos / mware / ini_reader.h
index 828c0f633ab40009ed1492e03834a88388f6cc85..7b4215512827ba4f24999b2aef450ac55892ce14 100644 (file)
  *
  * -->
  *
+ * \defgroup ini_reader Ini file reader
+ * \ingroup mware
+ * \{
+ *
  * \brief Ini file reader module.
  *
  * The format accepted is:
@@ -40,7 +44,6 @@
  * - no comments are allowed inside a line with key=value pair.
  * - every line that doesn't contain a '=' or doesn't start with '[' will be ignored.
  *
- * \version $Id$
  * \author Luca Ottaviano <lottaviano@develer.com>
  *
  * $WIZ$ module_name = "ini_reader"
@@ -51,7 +54,7 @@
 #ifndef INI_READER_H
 #define INI_READER_H
 
-#include <kern/kfile.h>
+#include <io/kfile.h>
 
 /**
  * \brief Returns the value for the given string in char* format.
  */
 int ini_getString(KFile *fd, const char *section, const char *key, const char *default_value, char *buf, size_t size);
 
+
+int ini_getInteger(KFile *fd, const char *section, const char *key, long default_value, long *val, int base);
+int ini_setString(KFile *in, KFile *out, const char *section, const char *key, const char *value);
+
+int ini_reader_testSetup(void);
+int ini_reader_testRun(void);
+int ini_reader_testTearDown(void);
+
+/** \} */ // defgroup ini_reader
 #endif /* INI_READER_H */