winpr: collections: add ArrayList_ForEach

This commit is contained in:
Kobi Mizrachi
2019-12-31 13:15:00 +02:00
committed by akallabeth
parent 29dee84a2b
commit 1543664343

View File

@@ -152,6 +152,11 @@ extern "C"
#define ArrayList_Object(_arrayList) (&_arrayList->object)
#define ArrayList_ForEach(_lst, _type, index, value) \
for (index = 0; \
index < ArrayList_Count(_lst) && (value = (_type)ArrayList_GetItem(_lst, index)); \
index++)
WINPR_API void ArrayList_Clear(wArrayList* arrayList);
WINPR_API BOOL ArrayList_Contains(wArrayList* arrayList, void* obj);