le_cdata.h File Reference

Go to the source code of this file.

Data Structures

struct  _le_cdata_MapEntry_t
 

Macros

#define LE_CDATA_COMPONENT_COUNT   1
 
#define LE_CDATA_DECLARE(x)   static struct x _le_cdata_Instance[LE_CDATA_COMPONENT_COUNT]
 
#define LE_CDATA_THIS   (&_le_cdata_Instance[0])
 

Typedefs

typedef const _le_cdata_MapEntry_t _le_cdata_ThreadRec_t
 

Functions

unsigned int le_cdata_GetInstance (unsigned int componentKey)
 

Detailed Description

Legato Component Data API include file.

Macro Definition Documentation

◆ LE_CDATA_DECLARE

#define LE_CDATA_DECLARE (   x)    static struct x _le_cdata_Instance[LE_CDATA_COMPONENT_COUNT]

Define per-component instance data.

◆ LE_CDATA_THIS

#define LE_CDATA_THIS   (&_le_cdata_Instance[0])

Fetch per-instance data for the current instance.

Function Documentation

◆ le_cdata_GetInstance()

unsigned int le_cdata_GetInstance ( unsigned int  componentKey)

Get this component instance.

Note
This should typically not be used by a user application; use LE_CDATA_THIS instead.