gtkslash 0.5.4

This commit is contained in:
troyengel 2014-11-26 12:11:49 -06:00
parent c32ead1037
commit 160ee6ac73
20 changed files with 4337 additions and 1283 deletions

View file

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