--- np2/x11/ini.h 2003/11/16 16:43:45 1.1 +++ np2/x11/ini.h 2011/01/15 19:16:58 1.5 @@ -1,9 +1,12 @@ #ifndef NP2_X11_INI_H__ #define NP2_X11_INI_H__ +G_BEGIN_DECLS + enum { INITYPE_STR = 0, INITYPE_BOOL, + INITYPE_BITMAP, INITYPE_ARGS16, INITYPE_ARGH8, INITYPE_SINT8, @@ -19,6 +22,7 @@ enum { INITYPE_KB, INITYPE_USER, INITYPE_SNDDRV, + INITYPE_INTERP, INITYPE_MASK = 0xff, INIFLAG_RO = 0x0100, @@ -33,18 +37,12 @@ typedef struct { const UINT32 arg; } 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 ini_write(const char *path, const char *title, const INITBL *tbl, UINT count, BOOL create); void initload(void); void initsave(void); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* NP2_X11_INI_H__ */