gtkslash 0.5.3

This commit is contained in:
troyengel 2014-11-26 12:05:00 -06:00
parent ceae872428
commit 825ddf6a4f
12 changed files with 1388 additions and 0 deletions

38
rcfuncs.h Normal file
View file

@ -0,0 +1,38 @@
#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_ */