1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-04 12:24:11 +01:00
LibrePilot/flight/Libraries/minIni/minGlue.h
gussy 26410ad8de Back to where we were with r133, but now with proper SD Card code.
Additions to note; PIOS_SPI, DosFS and PIOS_SDCARD.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@136 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-01-23 17:31: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);