7 Teleservice Application Framework
User Manual 177/374
7.3.5.4.3 ydatad_load_datapool_names
Function Description
sint32 ydatad_load_datapool_names (const charn * const opcn_Path)
This command skims through the base folder and creates a data pool structure for each subfolder that contains
a valid data pool.
Information Flow
Input Information
maximum
MAX_DP_BASEFOLDER_LENGHT
pointer to the base folder of the data pools
Output Information
Function executed without error
No data pools available or path size error
Example
// Global module
sint32 s32_Retval;
T_DBUS_Util mt_DBUS_Util;
charn acn_HelpString[MAX_DP_BASEFOLDER_LENGHT];
s32_Retval = ydatad_get_datapool_base_path (&mt_DBUS_Util, acn_HelpString,
sizeof(acn_HelpString));
if (s32_Retval != C_NO_ERR)
{
// Error handling
}
s32_Retval = ydatad_load_datapool_names (acn_HelpString)
if (s32_Retval != C_NO_ERR)
{
// Error handling
}