7 Teleservice Application Framework
User Manual 181/374
}E_DataType;
Example
// Global module
sint32 s32_DataPoolIndex;
sint32 s32_ListIndex;
sint32 s32_VarIndex;
T_DATA_VARIABLE_INFO t_DataVariableInfo;
sint32 s32_Retval;
s32_DataPoolIndex = ydatad_get_datapool_index ("MyDatapool")
s32_ListIndex = ydatad_get_list_index (s32_DataPoolIndex , "GPSDates");
s32_VarIndex = ydatad_get_variable_index (s32_DataPoolIndex, s32_ListIndex , "Logitude");
7.3.5.4.6 ydatad_get_list_index
Function Description
sint32 ydatad_get_list_index (const sint32 ops32_DatapoolIndex, const charn * const
opcn_VariableListName)
The function returns the variable list index number ops32_DatapoolIndex, of the variable list name
opcn_VariableListName.
Information Flow
Input Information
includes the index of the data pool
pointer to the variable list name
Output Information
Returns the data pool index number of the named list
Data pool not initialized or data pool index invalid or variable list name out of range
Structure T_DATA_VARIABLE_INFO
typedef struct
{
charn acn_VarName[MAX_DP_NAME_LENGTH]; // Variable name, max size of 32
charn acn_Type[MAX_DP_TYPENAME_LENGTH]; // Type of variable: max size of 10
The data pool names and the data pool itself have to be loaded first.