diff mbox series

[RFC,v2,06/48] alist: add a function declaration for alist_expand_by()

Message ID 20240704073544.670249-7-sughosh.ganu@linaro.org
State New
Headers show
Series Make U-Boot memory reservations coherent | expand

Commit Message

Sughosh Ganu July 4, 2024, 7:35 a.m. UTC
The alist_expand_by() function is a global function. Add a declaration
for the function in the header.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
---
Changes since V1: New patch

 include/alist.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/include/alist.h b/include/alist.h
index bab146c35d..d7cc27c14c 100644
--- a/include/alist.h
+++ b/include/alist.h
@@ -224,4 +224,13 @@  void *alist_uninit_move_ptr(struct alist *alist, size_t *countp);
  */
 void alist_uninit(struct alist *alist);
 
+/**
+ * alist_expand_by() - Expand a list by the given amount
+ *
+ * @lst: alist to expand
+ * @inc_by: Amount to expand by
+ * Return: true if OK, false if out of memory
+ */
+bool alist_expand_by(struct alist *lst, uint inc_by);
+
 #endif /* __ALIST_H */