LibJuno 0.1.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JUNO_TABLE_API_TAG Struct Reference

#include <table_api.h>

Data Fields

JUNO_STATUS_T(* Init )(JUNO_TABLE_MANAGER_T *ptTableManager, JUNO_TABLE_HDR_T *ptBuff, size_t zBuffSize, const char *pcTablePath, JUNO_FAILURE_HANDLER_T pfcnFailureHdlr, JUNO_USER_DATA_T *pvFailureUserData)
 
JUNO_STATUS_T(* Load )(JUNO_TABLE_MANAGER_T *ptTableManager)
 
JUNO_STATUS_T(* Save )(JUNO_TABLE_MANAGER_T *ptTableManager)
 
JUNO_STATUS_T(* SetBuffer )(JUNO_TABLE_MANAGER_T *ptTableManager, JUNO_TABLE_HDR_T *ptBuff)
 

Field Documentation

◆ Init

JUNO_STATUS_T(* JUNO_TABLE_API_TAG::Init) (JUNO_TABLE_MANAGER_T *ptTableManager, JUNO_TABLE_HDR_T *ptBuff, size_t zBuffSize, const char *pcTablePath, JUNO_FAILURE_HANDLER_T pfcnFailureHdlr, JUNO_USER_DATA_T *pvFailureUserData)

Initialize a Juno Table with a buffer

Parameters
ptTableThe table manager to initialize
ptMemoryApiThe memory api
ptBuffThe table buffer
zBuffSizeThe table buffer size
ptAllocThe memory allocator
pfcnFailureHdlrThe failure handler (can be null)
pvFailureUserDataThe failure handler user data (can be null)
Returns
Returns a JUNO_STATUS_T code

◆ Load

JUNO_STATUS_T(* JUNO_TABLE_API_TAG::Load) (JUNO_TABLE_MANAGER_T *ptTableManager)

Load the table

Parameters
ptTableManagerThe Juno table manager to load
Returns
Returns a JUNO_STATUS_T code

◆ Save

JUNO_STATUS_T(* JUNO_TABLE_API_TAG::Save) (JUNO_TABLE_MANAGER_T *ptTableManager)

Save the table

Parameters
ptTableManagerThe Juno table manager to load
Returns
Returns a JUNO_STATUS_T code

◆ SetBuffer

JUNO_STATUS_T(* JUNO_TABLE_API_TAG::SetBuffer) (JUNO_TABLE_MANAGER_T *ptTableManager, JUNO_TABLE_HDR_T *ptBuff)

Set the table manager to a new table buffer

Parameters
ptTableManagerThe Juno table manager to load
ptBuffThe new table buffer
zBuffSizeThe table buffer size
Returns
Returns a JUNO_STATUS_T code

The documentation for this struct was generated from the following file: