Extend allocator API

Create function for directly changing the size of rpool backing created
allocator.

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2021-02-25 09:41:35 +01:00
parent c2c1d9eb4c
commit bcc55f4f3c
2 changed files with 28 additions and 18 deletions

View File

@@ -78,6 +78,9 @@ static inline void env_secure_free(const void *ptr, size_t size)
typedef struct _env_allocator env_allocator;
env_allocator *env_allocator_create_extended(uint32_t size, const char *name,
int rpool_limit);
env_allocator *env_allocator_create(uint32_t size, const char *name);
void env_allocator_destroy(env_allocator *allocator);