minGlue.h 714 B

123456789101112131415161718
  1. /* Glue functions for the minIni library to the cache functions in minIni_cache.cpp */
  2. #include <SdFat.h>
  3. #define INI_OPENREWRITE 1
  4. #define INI_FILETYPE FsFile
  5. #define INI_FILEPOS fspos_t
  6. bool ini_openread(const char *filename, INI_FILETYPE *fp);
  7. bool ini_close(INI_FILETYPE *fp);
  8. bool ini_read(char *buffer, int size, INI_FILETYPE *fp);
  9. void ini_tell(INI_FILETYPE *fp, INI_FILEPOS *pos);
  10. void ini_seek(INI_FILETYPE *fp, INI_FILEPOS *pos);
  11. bool ini_write(char *buffer, INI_FILETYPE *fp);
  12. bool ini_openwrite(const char *filename, INI_FILETYPE *fp);
  13. bool ini_openrewrite(const char *filename, INI_FILETYPE *fp);
  14. void ini_rename(const char *new_name, const char *old_name);