38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
#ifndef _RCFUNCS_H_
|
|
#define _RCFUNCS_H_
|
|
|
|
/*
|
|
* rcfuncs - routines to parse generic RC files
|
|
* tengel@sonic.net
|
|
*
|
|
* This is taken from the LiteStep Shell Source code
|
|
* (http://www.litestep.net) and modified a bunch to meet
|
|
* our RC needs along with using gdk.
|
|
*
|
|
* This code is distributed under the terms of the GNU
|
|
* General Public License, etc etc. Use it, don't abuse it.
|
|
* See the file "Copying" for the entire GNU Public
|
|
* License policy.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
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_ */
|