*
* -->
*
+ * \defgroup ini_reader Ini file reader
+ * \ingroup mware
+ * \{
+ *
* \brief Ini file reader module.
*
* The format accepted is:
* - 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"
#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 */