|
|
| version 1.2, 2003/11/28 16:29:57 | version 1.6, 2012/01/23 04:20:24 |
|---|---|
| Line 1 | Line 1 |
| #ifndef NP2_X11_INI_H__ | #ifndef NP2_X11_INI_H__ |
| #define NP2_X11_INI_H__ | #define NP2_X11_INI_H__ |
| G_BEGIN_DECLS | |
| enum { | enum { |
| INITYPE_STR = 0, | INITYPE_STR = 0, |
| INITYPE_BOOL, | INITYPE_BOOL, |
| INITYPE_BITMAP, | |
| INITYPE_ARGS16, | INITYPE_ARGS16, |
| INITYPE_ARGH8, | INITYPE_ARGH8, |
| INITYPE_SINT8, | INITYPE_SINT8, |
| Line 19 enum { | Line 22 enum { |
| INITYPE_KB, | INITYPE_KB, |
| INITYPE_USER, | INITYPE_USER, |
| INITYPE_SNDDRV, | INITYPE_SNDDRV, |
| INITYPE_INTERP, | |
| INITYPE_MASK = 0xff, | INITYPE_MASK = 0xff, |
| INIFLAG_RO = 0x0100, | INIFLAG_RO = 0x0100, |
| Line 27 enum { | Line 31 enum { |
| }; | }; |
| typedef struct { | typedef struct { |
| const char item[10]; | char item[10]; |
| const UINT16 itemtype; | UINT16 itemtype; |
| const void *value; | void *value; |
| const UINT32 arg; | UINT32 arg; |
| } INITBL; | } INITBL; |
| #ifdef __cplusplus | void ini_read(const char *path, const char *title, INITBL *tbl, UINT count); |
| extern "C" { | void ini_write(const char *path, const char *title, INITBL *tbl, UINT count, BOOL create); |
| #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, BOOL create); | |
| void initload(void); | void initload(void); |
| void initsave(void); | void initsave(void); |
| #ifdef __cplusplus | G_END_DECLS |
| } | |
| #endif | |
| #endif /* NP2_X11_INI_H__ */ | #endif /* NP2_X11_INI_H__ */ |