--- np2/common/profile.h 2004/03/31 14:02:50 1.6 +++ np2/common/profile.h 2004/05/06 20:37:36 1.8 @@ -19,7 +19,7 @@ enum { }; typedef struct { - BYTE *buffer; + char *buffer; UINT buffers; UINT size; UINT flag; @@ -64,10 +64,13 @@ typedef struct { UINT32 arg; } PFTBL; +typedef void (*PFREAD)(const PFTBL *item, const char *string); +typedef char *(*PFWRITE)(const PFTBL *item, char *string, UINT size); + void profile_iniread(const char *path, const char *app, - const PFTBL *tbl, UINT count); + const PFTBL *tbl, UINT count, PFREAD cb); void profile_iniwrite(const char *path, const char *app, - const PFTBL *tbl, UINT count); + const PFTBL *tbl, UINT count, PFWRITE cb); #ifdef __cplusplus }