2010-01-23 18:31:14 +01:00
|
|
|
/* Glue functions for the minIni library */
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-01-23 18:31:14 +01:00
|
|
|
#define INI_LINETERM "\r\n"
|
2009-11-28 10:28:11 +01:00
|
|
|
#define NDEBUG
|
2010-01-23 18:31:14 +01:00
|
|
|
#define INI_BUFFERSIZE 80
|
|
|
|
// #define INI_BUFFERSIZE 256 /* maximum line length, maximum path length */
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-01-23 18:31:14 +01:00
|
|
|
#include "dosfs.h"
|
|
|
|
#define INI_FILETYPE FILEINFO
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-01-23 18:31:14 +01:00
|
|
|
#define ini_openread(filename,file) dosfs_ini_openread(filename,file)
|
|
|
|
#define ini_openwrite(filename,file) dosfs_ini_openwrite(filename,file)
|
|
|
|
#define ini_close(file) dosfs_ini_close(file)
|
|
|
|
#define ini_read(buffer,size,file) dosfs_ini_read(buffer,size,file)
|
|
|
|
#define ini_write(buffer,file) dosfs_ini_write(buffer,file)
|
|
|
|
#define ini_rename(source,dest) dosfs_ini_rename(source,dest)
|
|
|
|
#define ini_remove(filename) dosfs_ini_remove(filename)
|
|
|
|
#define ini_rewind(file) dosfs_ini_rewind(file)
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-01-23 18:31:14 +01:00
|
|
|
extern int dosfs_ini_openread(const char *filename, PFILEINFO file);
|
|
|
|
extern int dosfs_ini_openwrite(const char *filename, PFILEINFO file);
|
|
|
|
extern int dosfs_ini_close(PFILEINFO file);
|
|
|
|
extern int dosfs_ini_read(char *buffer, int size, PFILEINFO file);
|
|
|
|
extern int dosfs_ini_write(char *buffer, PFILEINFO file);
|
|
|
|
extern int dosfs_ini_rename(const char *source, const char *dest);
|
|
|
|
extern int dosfs_ini_remove(const char *filename);
|
|
|
|
extern int dosfs_ini_rewind(PFILEINFO file);
|
2009-11-28 10:28:11 +01:00
|
|
|
|