Logo
UNICENS V2.1.0-3491
User Manual and API Reference
Ucs_Rm_XrmResDebugCb_t debug_resource_status_fptr

Callback function that acts as a debug interface for XRM resources. The user application has the possibility to monitor the specified XRM resources.


Example

Ucs_InitData_t ucs_init_data;
(void)Ucs_SetDefaultConfig(&ucs_init_data);
// Routing Management init section.
ucs_init_data.rm.debug_resource_status_fptr = &App_OnDebuggingXrmResources;
// Debug interface for the XRM resources
void App_OnDebuggingXrmResources (Ucs_Xrm_ResourceType_t resource_type, Ucs_Xrm_ResObject_t *resource_ptr, Ucs_Xrm_ResourceInfos_t resource_infos, Ucs_Rm_EndPoint_t * endpoint_inst_ptr, void *user_ptr)
{
switch (resource_infos)
{
// Resource has been built
break;
// resource has been destroyed
break;
//Resource cannot be built
break;
default:
// Resource cannot be destroyed
break;
}
}