summaryrefslogtreecommitdiff
path: root/include/darray.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/darray.h')
-rw-r--r--include/darray.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/darray.h b/include/darray.h
index ff592ce..43e093d 100644
--- a/include/darray.h
+++ b/include/darray.h
@@ -9,13 +9,14 @@ extern "C" {
typedef int (*SortFunction)(const void *, const void *);
typedef BOOL (*MapFunction)(const void *, s32);
+typedef void (*DtorFunction)(void *);
typedef struct DArray {
s32 size;
s32 capacity;
- u32 elementSz;
+ u32 elemSz;
s32 growAmount;
- s32 unk10; // TODO destructor callback?
+ DtorFunction elemDtor;
char *buf;
} DArray;