aboutsummaryrefslogtreecommitdiff
path: root/development/libs/libbowl/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'development/libs/libbowl/array.h')
-rw-r--r--development/libs/libbowl/array.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/development/libs/libbowl/array.h b/development/libs/libbowl/array.h
new file mode 100644
index 000000000000..a1ac8c06df79
--- /dev/null
+++ b/development/libs/libbowl/array.h
@@ -0,0 +1,29 @@
+#ifndef _ARRAY_H_
+#define _ARRAY_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "bowl.h"
+
+err_t array_malloc(struct bowl *, size_t);
+
+err_t array_insert(struct bowl *, struct bowl *);
+
+err_t array_insert_key(struct bowl *, size_t idx, struct bowl *);
+
+err_t array_swap_key(struct bowl *, size_t idx, struct bowl *, struct bowl **);
+
+err_t array_remove(struct bowl *, struct bowl *);
+
+err_t array_remove_key(struct bowl *, size_t, struct bowl **);
+
+err_t array_free(struct bowl *);
+
+err_t array_free_shallow(struct bowl_arr *);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // _ARRAY_H_