1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/PiOS/STM32F10x/Libraries/minIni/minGlue.h
gussy df6b2e4ddc Moved STM32 specific PiOS Libraries.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@240 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-03-04 06:14:14 +00:00

29 lines
1.3 KiB
C

/* Glue functions for the minIni library */
#define INI_LINETERM "\r\n"
#define NDEBUG
#define INI_BUFFERSIZE 80
// #define INI_BUFFERSIZE 256 /* maximum line length, maximum path length */
#include "dosfs.h"
#define INI_FILETYPE FILEINFO
#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)
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);