File:  [RetroPC.NET] / np2 / common / lstarray.h
Revision 1.5: download - view: text, annotated - select for diffs
Sun Mar 20 15:09:16 2005 JST (20 years, 7 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
fix support UCS2 (T.Yui)


typedef struct _la {
	UINT	maxitems;
	size_t	listsize;
	UINT	items;
struct _la	*laNext;
} _LISTARRAY, *LISTARRAY;


#ifdef __cplusplus
extern "C" {
#endif

LISTARRAY listarray_new(size_t listsize, UINT maxitems);
void listarray_clr(LISTARRAY laHandle);
void listarray_destroy(LISTARRAY laHandle);

UINT listarray_getitems(LISTARRAY laHandle);
void *listarray_append(LISTARRAY laHandle, const void *vpItem);
void *listarray_getitem(LISTARRAY laHandle, UINT num);
UINT listarray_getpos(LISTARRAY laHandle, void *vpItem);
void *listarray_enum(LISTARRAY laHandle,
					BOOL (*cbProc)(void *vpItem, void *vpArg), void *vpArg);

#ifdef __cplusplus
}
#endif


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