--- np2/common/lstarray.h 2003/10/16 17:57:10 1.1.1.1 +++ np2/common/lstarray.h 2005/03/20 06:09:16 1.5 @@ -1,8 +1,4 @@ -#ifdef __cplusplus -extern "C" { -#endif - typedef struct _la { UINT maxitems; size_t listsize; @@ -10,6 +6,11 @@ typedef struct _la { 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); @@ -17,8 +18,9 @@ void listarray_destroy(LISTARRAY laHandl 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); + BOOL (*cbProc)(void *vpItem, void *vpArg), void *vpArg); #ifdef __cplusplus }