00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __INI_READER_H__
00012 #define __INI_READER_H__
00013
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026 #if !defined(__cplusplus) || defined(NO_CPLUSPLUS)
00027 DSL_API char * DSL_CC Get_INI_String(const char * pszFilename, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault);
00028 DSL_API char * DSL_CC Get_INI_String_Memory(const char * cINIFile, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault);
00029 DSL_API int64 DSL_CC Get_INI_Int(const char *path, const char *section, const char *item, int64 iDefault);
00030 #else
00031 DSL_API char * DSL_CC Get_INI_String(const char * pszFilename, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault = NULL);
00032 DSL_API int64 DSL_CC Get_INI_Int(const char *path, const char *section, const char *item, int64 iDefault = 0);
00033
00034 DSL_API char * DSL_CC Get_INI_String_Memory(const char * cINIFile, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault = NULL);
00035 DSL_API int64 DSL_CC Get_INI_Int_Memory(const char * cINIFile, const char *section, const char *item, int64 iDefault = 0);
00036 #endif
00037
00038 DSL_API int DSL_CC Write_INI_String(const char *pszPath, const char *pszSection, const char *pszItem, const char *pszValue);
00039 DSL_API int DSL_CC Write_INI_Int(const char *pszPath, const char *pszSection, const char *pszItem, int64 iValue);
00040
00041 #ifdef __cplusplus
00042 }
00043 #endif
00044
00047 #endif // __INI_READER_H__
00048