LibJuno 0.23.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
JUNO_MAP_API_TAG Struct Reference

#include <map_api.h>

Data Fields

JUNO_STATUS_T(* Set )(JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T tValue)
 
JUNO_STATUS_T(* Remove )(JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey)
 
JUNO_STATUS_T(* Get )(JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T *ptRetValue)
 

Field Documentation

◆ Get

JUNO_STATUS_T(* JUNO_MAP_API_TAG::Get) (JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T *ptRetValue)

Get a value from the map using the key

Parameters
ptMapA pointer to the map
tKeyThe key to use
ptRetValThe return value retrieved using the key
Returns
Status of operation Returns JUNO_STATUS_DNE_ERROR if the key is not in the map

◆ Remove

JUNO_STATUS_T(* JUNO_MAP_API_TAG::Remove) (JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey)

Remove a key,value pair from the map

Parameters
ptMapA pointer to the map
tKeyThe key to remove
Returns
Status of operation

◆ Set

JUNO_STATUS_T(* JUNO_MAP_API_TAG::Set) (JUNO_MAP_T *ptMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T tValue)

Add a key,value pair to the map

Parameters
ptMapA pointer to the map
ptKeyA key to add
pvValueA value to add
Returns
Status of operation

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