File:  [RetroPC.NET] / np2 / mona / ini.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 4 14:45:46 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
support Mona-OS (T.Yui)


enum {
	INITYPE_STR			= 0,
	INITYPE_BOOL,
	INITYPE_BYTEARG,
	INITYPE_SINT8,
	INITYPE_SINT16,
	INITYPE_SINT32,
	INITYPE_UINT8,
	INITYPE_UINT16,
	INITYPE_UINT32,
	INITYPE_HEX8,
	INITYPE_HEX16,
	INITYPE_HEX32,
	INITYPE_USER
};

typedef struct {
const char	*item;
	UINT	itemtype;
	void	*value;
	UINT	size;
} INITBL;


#ifdef __cplusplus
extern "C" {
#endif

void ini_read(const char *path, const char *title,
											const INITBL *tbl, UINT count);
void ini_write(const char *path, const char *title,
											const INITBL *tbl, UINT count);

void initload(void);
void initsave(void);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>