This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
gtkslash/rcfuncs.h
2024-03-20 09:24:54 -05:00

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_ */