LibJuno 0.1.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
table_posix.h File Reference
Include dependency graph for table_posix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

JUNO_STATUS_T Juno_TablePosixInit (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 Juno_TablePosixLoad (JUNO_TABLE_MANAGER_T *ptTableManager)
 
JUNO_STATUS_T Juno_TablePosixSave (JUNO_TABLE_MANAGER_T *ptTableManager)
 
JUNO_STATUS_T Juno_TablePosixSetBuffer (JUNO_TABLE_MANAGER_T *ptTableManager, JUNO_TABLE_HDR_T *ptBuff)
 
const JUNO_TABLE_API_TJuno_TablePosixApi (void)
 

Function Documentation

◆ Juno_TablePosixApi()

const JUNO_TABLE_API_T * Juno_TablePosixApi ( void  )

Get the POSIX JUNO_TABLE_API_T

Returns
Return the JUNO_TABLE_API_T

◆ Juno_TablePosixInit()

JUNO_STATUS_T Juno_TablePosixInit ( 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

◆ Juno_TablePosixLoad()

JUNO_STATUS_T Juno_TablePosixLoad ( JUNO_TABLE_MANAGER_T ptTableManager)

Load the table

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

◆ Juno_TablePosixSave()

JUNO_STATUS_T Juno_TablePosixSave ( JUNO_TABLE_MANAGER_T ptTableManager)

Save the table

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

◆ Juno_TablePosixSetBuffer()

JUNO_STATUS_T Juno_TablePosixSetBuffer ( 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