LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
memory_api.h File Reference

Abstract memory allocation API and verification helpers. More...

#include "juno/macros.h"
#include "juno/status.h"
#include "juno/module.h"
#include <stddef.h>
#include <stdalign.h>
#include "juno/memory/pointer_api.h"
Include dependency graph for memory_api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  JUNO_MEMORY_ALLOC_API_TAG
 Vtable for memory allocation operations. More...
 

Typedefs

typedef struct JUNO_MEMORY_ALLOC_API_TAG JUNO_MEMORY_ALLOC_API_T
 
typedef struct JUNO_MEMORY_ALLOC_ROOT_TAG JUNO_MEMORY_ALLOC_ROOT_T
 

Functions

struct JUNO_MEMORY_ALLOC_ROOT_TAG JUNO_MODULE_ROOT (JUNO_MEMORY_ALLOC_API_T, const JUNO_POINTER_API_T *ptPointerApi;)
 
static JUNO_STATUS_T JunoMemory_AllocApiVerify (const JUNO_MEMORY_ALLOC_API_T *ptAllocApi)
 Verify that a memory allocator API provides required functions.
 
static JUNO_STATUS_T JunoMemory_AllocVerify (const JUNO_MEMORY_ALLOC_ROOT_T *ptAlloc)
 Verify a memory allocator instance and its dependent pointer API.
 

Detailed Description

Abstract memory allocation API and verification helpers.

This API has been generated by LibJuno: https://www.robinonsay.com/libjuno/

Typedef Documentation

◆ JUNO_MEMORY_ALLOC_API_T

◆ JUNO_MEMORY_ALLOC_ROOT_T

typedef struct JUNO_MEMORY_ALLOC_ROOT_TAG JUNO_MEMORY_ALLOC_ROOT_T

Function Documentation

◆ JUNO_MODULE_ROOT()

struct JUNO_MEMORY_ALLOC_ROOT_TAG JUNO_MODULE_ROOT ( JUNO_MEMORY_ALLOC_API_T  ,
const JUNO_POINTER_API_T *ptPointerApi;   
)