--- np2/x11/ini.h 2003/11/28 16:29:57 1.2 +++ np2/x11/ini.h 2012/01/23 04:20:24 1.6 @@ -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, @@ -27,24 +31,18 @@ enum { }; typedef struct { - const char item[10]; - const UINT16 itemtype; - const void *value; - const UINT32 arg; + char item[10]; + UINT16 itemtype; + void *value; + 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, BOOL create); +void ini_read(const char *path, const char *title, INITBL *tbl, UINT count); +void ini_write(const char *path, const char *title, INITBL *tbl, UINT count, BOOL create); void initload(void); void initsave(void); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* NP2_X11_INI_H__ */