summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-01-02 19:45:59 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-01-15 10:04:13 +0000
commit680261fbb7c3c0a4cde4321c35ce3fe0e6b0cce8 (patch)
tree7be68e9dfd2986059f9e4decd369fea1bdc91d1b /firmware/include
parente23c78522a1b306c9838672a5fec3698938f9586 (diff)
downloadrockbox-680261fbb7c3c0a4cde4321c35ce3fe0e6b0cce8.tar.gz
rockbox-680261fbb7c3c0a4cde4321c35ce3fe0e6b0cce8.zip
buflib: Prep for multiple backend support, rename to buflib_mempool
Rename the current buflib implementation to buflib_mempool. Change-Id: Iefdf74be1f7d8fcd19e6ce2289c3d1459b54d013
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/buflib_mempool.h (renamed from firmware/include/buflib.h)6
-rw-r--r--firmware/include/chunk_alloc.h2
-rw-r--r--firmware/include/core_alloc.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib_mempool.h
index 49e4db11c0..61fe2168b0 100644
--- a/firmware/include/buflib.h
+++ b/firmware/include/buflib_mempool.h
@@ -23,8 +23,8 @@
23* KIND, either express or implied. 23* KIND, either express or implied.
24* 24*
25****************************************************************************/ 25****************************************************************************/
26#ifndef _BUFLIB_H_ 26#ifndef _BUFLIB_MEMPOOL_H_
27#define _BUFLIB_H_ 27#define _BUFLIB_MEMPOOL_H_
28 28
29#include <stdint.h> 29#include <stdint.h>
30#include <stdbool.h> 30#include <stdbool.h>
@@ -378,4 +378,4 @@ bool buflib_print_block_at(struct buflib_context *ctx, int block_num,
378void buflib_check_valid(struct buflib_context *ctx); 378void buflib_check_valid(struct buflib_context *ctx);
379#endif 379#endif
380 380
381#endif /* _BUFLIB_H_ */ 381#endif /* _BUFLIB_MEMPOOL_H_ */
diff --git a/firmware/include/chunk_alloc.h b/firmware/include/chunk_alloc.h
index 7d64d4b591..f589cc0870 100644
--- a/firmware/include/chunk_alloc.h
+++ b/firmware/include/chunk_alloc.h
@@ -24,7 +24,7 @@
24#include <stdbool.h> 24#include <stdbool.h>
25#include <string.h> 25#include <string.h>
26#include "config.h" 26#include "config.h"
27#include "buflib.h" 27#include "buflib_mempool.h"
28 28
29#define CHUNK_ALLOC_INVALID ((size_t)-1) 29#define CHUNK_ALLOC_INVALID ((size_t)-1)
30 30
diff --git a/firmware/include/core_alloc.h b/firmware/include/core_alloc.h
index 22cc1988da..382200dd75 100644
--- a/firmware/include/core_alloc.h
+++ b/firmware/include/core_alloc.h
@@ -4,7 +4,7 @@
4#include <string.h> 4#include <string.h>
5#include <stdbool.h> 5#include <stdbool.h>
6#include "config.h" 6#include "config.h"
7#include "buflib.h" 7#include "buflib_mempool.h"
8#include "chunk_alloc.h" 8#include "chunk_alloc.h"
9 9
10/* All functions below are wrappers for functions in buflib.h, except 10/* All functions below are wrappers for functions in buflib.h, except