iLLD_TC27xD  1.0
Global resources
Collaboration diagram for Global resources:

Functions

IFX_EXTERN void * Ifx_GlobalResources_get (sint32 id)
 
IFX_EXTERN sint32 Ifx_GlobalResources_getIndex (void *resource)
 Returns the global resource index. More...
 
IFX_EXTERN const
Ifx_GlobalResources_Item
Ifx_GlobalResources_getItem (sint32 id)
 
IFX_EXTERN pchar Ifx_GlobalResources_getName (sint32 id)
 
IFX_EXTERN boolean Ifx_GlobalResources_init (const Ifx_GlobalResources_Item *table, uint32 size)
 

Detailed Description

This module implements the global resources handling

Function Documentation

IFX_EXTERN void* Ifx_GlobalResources_get ( sint32  id)

Return a pointer to the global resource

Parameters
idindex of the Ifx_GlobalResources_Item in the table, the index starts with 0
Returns
return Ifx_GlobalResources_Item.resource

Definition at line 38 of file Ifx_GlobalResources.c.

IFX_EXTERN sint32 Ifx_GlobalResources_getIndex ( void *  resource)

Returns the global resource index.

Returns
Returns the global resource index, -1 if not found

Definition at line 62 of file Ifx_GlobalResources.c.

IFX_EXTERN const Ifx_GlobalResources_Item* Ifx_GlobalResources_getItem ( sint32  id)

Return a pointer to the global resource item

Parameters
idindex of the Ifx_GlobalResources_Item in the table, the index starts with 0
Returns
return the Ifx_GlobalResources_Item

Definition at line 86 of file Ifx_GlobalResources.c.

IFX_EXTERN pchar Ifx_GlobalResources_getName ( sint32  id)

Return a the resource name as an NULL terminated string

Parameters
idindex of the Ifx_GlobalResources_Item in the table, the index starts with 0
Returns
return Ifx_GlobalResources_Item.name

Definition at line 110 of file Ifx_GlobalResources.c.

IFX_EXTERN boolean Ifx_GlobalResources_init ( const Ifx_GlobalResources_Item table,
uint32  size 
)

Initialize the global resource handler

Parameters
tablepointer to an array of Ifx_GlobalResources_Item
sizenumber of item in the table corresponds to sizeof(table)

return returns TRUE in case of success else FALSE

Definition at line 134 of file Ifx_GlobalResources.c.