buflib: Add CONFIG_BUFLIB_BACKEND for selecting a buflib backend

Defaults to the normal "mempool" backend, which is currently the
only implementation.

Change-Id: I56d034a6e0f5edc90c39526d1551945eec6ca336
This commit is contained in:
Aidan MacDonald 2023-01-02 19:49:56 +00:00
parent 680261fbb7
commit f995c26de9
9 changed files with 48 additions and 5 deletions

View file

@ -26,6 +26,10 @@
#ifndef _BUFLIB_MEMPOOL_H_
#define _BUFLIB_MEMPOOL_H_
#ifndef _BUFLIB_H_
# error "include buflib.h instead"
#endif
#include <stdint.h>
#include <stdbool.h>
#include <string.h>