buflib: Prep for multiple backend support, rename to buflib_mempool

Rename the current buflib implementation to buflib_mempool.

Change-Id: Iefdf74be1f7d8fcd19e6ce2289c3d1459b54d013
This commit is contained in:
Aidan MacDonald 2023-01-02 19:45:59 +00:00
parent e23c78522a
commit 680261fbb7
8 changed files with 10 additions and 10 deletions

View file

@ -100,7 +100,7 @@ int plugin_open(const char *plugin, const char *parameter);
#include "list.h" #include "list.h"
#include "tree.h" #include "tree.h"
#include "color_picker.h" #include "color_picker.h"
#include "buflib.h" #include "buflib_mempool.h"
#include "buffering.h" #include "buffering.h"
#include "tagcache.h" #include "tagcache.h"
#include "viewport.h" #include "viewport.h"

View file

@ -4,7 +4,7 @@
ata_idle_notify.c ata_idle_notify.c
events.c events.c
backlight.c backlight.c
buflib.c buflib_mempool.c
core_alloc.c core_alloc.c
general.c general.c
powermgmt.c powermgmt.c

View file

@ -29,7 +29,7 @@
#include <stdlib.h> /* for abs() */ #include <stdlib.h> /* for abs() */
#include <stdio.h> /* for snprintf() */ #include <stdio.h> /* for snprintf() */
#include <stddef.h> /* for ptrdiff_t */ #include <stddef.h> /* for ptrdiff_t */
#include "buflib.h" #include "buflib_mempool.h"
#include "string-extra.h" /* strmemccpy() */ #include "string-extra.h" /* strmemccpy() */
#include "debug.h" #include "debug.h"
#include "panic.h" #include "panic.h"

View file

@ -3,7 +3,7 @@
#include <string.h> #include <string.h>
#include "system.h" #include "system.h"
#include "core_alloc.h" #include "core_alloc.h"
#include "buflib.h" #include "buflib_mempool.h"
/* not static so it can be discovered by core_get_data() */ /* not static so it can be discovered by core_get_data() */
struct buflib_context core_ctx; struct buflib_context core_ctx;

View file

@ -23,8 +23,8 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#ifndef _BUFLIB_H_ #ifndef _BUFLIB_MEMPOOL_H_
#define _BUFLIB_H_ #define _BUFLIB_MEMPOOL_H_
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -378,4 +378,4 @@ bool buflib_print_block_at(struct buflib_context *ctx, int block_num,
void buflib_check_valid(struct buflib_context *ctx); void buflib_check_valid(struct buflib_context *ctx);
#endif #endif
#endif /* _BUFLIB_H_ */ #endif /* _BUFLIB_MEMPOOL_H_ */

View file

@ -24,7 +24,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "config.h" #include "config.h"
#include "buflib.h" #include "buflib_mempool.h"
#define CHUNK_ALLOC_INVALID ((size_t)-1) #define CHUNK_ALLOC_INVALID ((size_t)-1)

View file

@ -4,7 +4,7 @@
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>
#include "config.h" #include "config.h"
#include "buflib.h" #include "buflib_mempool.h"
#include "chunk_alloc.h" #include "chunk_alloc.h"
/* All functions below are wrappers for functions in buflib.h, except /* All functions below are wrappers for functions in buflib.h, except

View file

@ -5,5 +5,5 @@ warble.c
../../../firmware/common/structec.c ../../../firmware/common/structec.c
../../../firmware/common/pathfuncs.c ../../../firmware/common/pathfuncs.c
../../../firmware/common/crc32.c ../../../firmware/common/crc32.c
../../../firmware/buflib.c ../../../firmware/buflib_mempool.c
../../../firmware/core_alloc.c ../../../firmware/core_alloc.c