diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-02 19:45:59 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-15 10:04:13 +0000 |
commit | 680261fbb7c3c0a4cde4321c35ce3fe0e6b0cce8 (patch) | |
tree | 7be68e9dfd2986059f9e4decd369fea1bdc91d1b /firmware | |
parent | e23c78522a1b306c9838672a5fec3698938f9586 (diff) | |
download | rockbox-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')
-rw-r--r-- | firmware/SOURCES | 2 | ||||
-rw-r--r-- | firmware/buflib_mempool.c (renamed from firmware/buflib.c) | 2 | ||||
-rw-r--r-- | firmware/core_alloc.c | 2 | ||||
-rw-r--r-- | firmware/include/buflib_mempool.h (renamed from firmware/include/buflib.h) | 6 | ||||
-rw-r--r-- | firmware/include/chunk_alloc.h | 2 | ||||
-rw-r--r-- | firmware/include/core_alloc.h | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index fca6fdf573..c8789756aa 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -4,7 +4,7 @@ | |||
4 | ata_idle_notify.c | 4 | ata_idle_notify.c |
5 | events.c | 5 | events.c |
6 | backlight.c | 6 | backlight.c |
7 | buflib.c | 7 | buflib_mempool.c |
8 | core_alloc.c | 8 | core_alloc.c |
9 | general.c | 9 | general.c |
10 | powermgmt.c | 10 | powermgmt.c |
diff --git a/firmware/buflib.c b/firmware/buflib_mempool.c index cb35290c03..18e4f118ff 100644 --- a/firmware/buflib.c +++ b/firmware/buflib_mempool.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <stdlib.h> /* for abs() */ | 29 | #include <stdlib.h> /* for abs() */ |
30 | #include <stdio.h> /* for snprintf() */ | 30 | #include <stdio.h> /* for snprintf() */ |
31 | #include <stddef.h> /* for ptrdiff_t */ | 31 | #include <stddef.h> /* for ptrdiff_t */ |
32 | #include "buflib.h" | 32 | #include "buflib_mempool.h" |
33 | #include "string-extra.h" /* strmemccpy() */ | 33 | #include "string-extra.h" /* strmemccpy() */ |
34 | #include "debug.h" | 34 | #include "debug.h" |
35 | #include "panic.h" | 35 | #include "panic.h" |
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c index 948911b973..6f6c385597 100644 --- a/firmware/core_alloc.c +++ b/firmware/core_alloc.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include "system.h" | 4 | #include "system.h" |
5 | #include "core_alloc.h" | 5 | #include "core_alloc.h" |
6 | #include "buflib.h" | 6 | #include "buflib_mempool.h" |
7 | 7 | ||
8 | /* not static so it can be discovered by core_get_data() */ | 8 | /* not static so it can be discovered by core_get_data() */ |
9 | struct buflib_context core_ctx; | 9 | struct buflib_context core_ctx; |
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, | |||
378 | void buflib_check_valid(struct buflib_context *ctx); | 378 | void 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 |