home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0948.lha / Snoopy / Ini / Includes / clib / ini_protos.h
C/C++ Source or Header  |  1993-12-20  |  1KB  |  37 lines

  1. #ifndef CLIB_INI_PROTOS_H
  2. #define CLIB_INI_PROTOS_H
  3.  
  4. #ifndef DOS_DOS_H
  5. #include <dos/dos.h>
  6. #endif
  7.  
  8. #ifndef  LIBRARIES_INI_H
  9. #include <libraries/ini.h>
  10. #endif
  11.  
  12. #ifndef UTILITY_TAGITEM_H
  13. #include <utility/tagitem.h>
  14. #endif
  15.  
  16. INIERROR ini_New(STRPTR fileName,INIPARSER *parser);
  17. INIERROR ini_Delete(INIPARSER *parser);
  18. INILINEINFO *ini_GetHeader(INIPARSER *parser,STRPTR headerName);
  19. INILINEINFO *ini_GetVariable(INILINEINFO *parser,STRPTR variableName);
  20. STRPTR ini_ErrorString(INIERROR errorCode);
  21. INIERROR ini_GetString(INIPARSER *parser,STRPTR header,STRPTR variable,STRPTR defaultString,STRPTR target,WORD sizeOfTarget);
  22. INIERROR ini_GetInteger(INIPARSER *parser,STRPTR header,STRPTR variable,LONG defaultLong,LONG *target);
  23. INIERROR ini_GetBool(INIPARSER *parser,STRPTR header,STRPTR variable,BOOL defaultBool,BOOL *target);
  24. INIERROR ini_Save(STRPTR fileName,INIPARSER *parser);
  25. INIERROR ini_RemoveVariable(INIPARSER *parser,STRPTR header,STRPTR variable);
  26. INIERROR ini_ChangeString(INIPARSER *parser,STRPTR header,STRPTR variable,STRPTR value);
  27. INIERROR ini_NewConfig(struct TagItem *tags);
  28. INICONFIG *ini_LocalConfig(void);
  29. STRPTR ini_NewFilename(STRPTR filename);
  30. void ini_DeleteFilename(STRPTR filename);
  31. INIERROR ini_ProtectSection(INIPARSER *parser,INILINEINFO *header,STRPTR *password);
  32. INIERROR ini_CheckProtection(INILINEINFO *header,STRPTR *password);
  33. BPTR ini_OpenFile(STRPTR filename,WORD mode,INIPARSER *parser);
  34.  
  35. #endif /* CLIB_INI_PROTOS_H */
  36.  
  37.