projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more functions to manage ini file.
[bertos.git]
/
bertos
/
mware
/
ini_reader.h
diff --git
a/bertos/mware/ini_reader.h
b/bertos/mware/ini_reader.h
index 2ac27203d3c8805f6d968a9fabcb44338134f401..7b4215512827ba4f24999b2aef450ac55892ce14 100644
(file)
--- a/
bertos/mware/ini_reader.h
+++ b/
bertos/mware/ini_reader.h
@@
-30,6
+30,10
@@
*
* -->
*
*
* -->
*
+ * \defgroup ini_reader Ini file reader
+ * \ingroup mware
+ * \{
+ *
* \brief Ini file reader module.
*
* The format accepted is:
* \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.
*
* - 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"
* \author Luca Ottaviano <lottaviano@develer.com>
*
* $WIZ$ module_name = "ini_reader"
@@
-51,7
+54,7
@@
#ifndef INI_READER_H
#define INI_READER_H
#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.
/**
* \brief Returns the value for the given string in char* format.
@@
-68,7
+71,13
@@
*/
int ini_getString(KFile *fd, const char *section, const char *key, const char *default_value, char *buf, size_t size);
*/
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);
int ini_reader_testSetup(void);
int ini_reader_testRun(void);
int ini_reader_testTearDown(void);
+
+/** \} */ // defgroup ini_reader
#endif /* INI_READER_H */
#endif /* INI_READER_H */