]> Git Repo - J-u-boot.git/blobdiff - include/abuf.h
test: spl: Add functions to create images
[J-u-boot.git] / include / abuf.h
index 9badda64e4faf06da3845cb9eca9b7d3c695f85a..be98ec78c860fb1ff1da43d8969bbce48034e321 100644 (file)
@@ -90,6 +90,15 @@ void abuf_map_sysmem(struct abuf *abuf, ulong addr, size_t size);
  */
 bool abuf_realloc(struct abuf *abuf, size_t new_size);
 
+/**
+ * abuf_realloc_inc() - Increment abuf size by a given amount
+ *
+ * @abuf: abuf to adjust
+ * @inc: Size incrmement to use (the buffer size will be increased by this much)
+ * Return: true if OK, false if out of memory
+ */
+bool abuf_realloc_inc(struct abuf *abuf, size_t inc);
+
 /**
  * abuf_uninit_move() - Return the allocated contents and uninit the abuf
  *
This page took 0.02672 seconds and 4 git commands to generate.