32 lines
883 B
C
32 lines
883 B
C
#ifndef _RCFUNCS_H_
|
|
#define _RCFUNCS_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#ifndef WIN32
|
|
typedef gboolean BOOL;
|
|
typedef guint DWORD;
|
|
typedef gushort WORD;
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
FILE* RCOpen(const gchar *szFile);
|
|
BOOL RCClose(FILE *f);
|
|
gint RCTokenize(const gchar *szString, gchar **lpszBuffers, DWORD dwNumBuffers, gchar *szExtraParameters);
|
|
gchar* RCFindLine(const gchar *lpKeyName);
|
|
gint RCGetInt(const gchar *lpKeyName, gint nDefault);
|
|
BOOL RCGetBool(const gchar *lpKeyName, BOOL ifFound);
|
|
BOOL RCGetString(const gchar *lpKeyName, gchar *value, const gchar *defStr, gint maxLen);
|
|
void RCVarExpansion(gchar *buffer, const gchar *value);
|
|
BOOL RCReadNextLine (FILE *f, gchar *szBuffer, DWORD dwLength);
|
|
BOOL RCInit(const gchar *szPath);
|
|
void RCShutDown(void);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* _RCFUNCS_H_ */
|