- Extend data struct handler tab.

This commit is contained in:
Arnaud G. GIBERT 2024-05-27 23:12:23 +02:00
parent 842da177f5
commit dbbca69430
2 changed files with 24 additions and 23 deletions

View File

@ -2532,7 +2532,7 @@ SMT_Status SM_Base_Init ( void )
// rc = ND_DataStruct_Open( &( SM_Base->MHR), 1, &index_type, "MHR_Manager", NULL, "SM_Base_Alloc", NULL, "SM_Base_Free", NULL, TRUE, NULL); // rc = ND_DataStruct_Open( &( SM_Base->MHR), 1, &index_type, "MHR_Manager", NULL, "SM_Base_Alloc", NULL, "SM_Base_Free", NULL, TRUE, NULL);
if( ( rc = ND_DataStruct_Open( &( SM_Base->MHR), "SHM-MHR", 1, &index_type, "MHR_Manager", NULL, &SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK) if( ( rc = ND_DataStruct_Open( &( SM_Base->MHR), "SHM-MHR", 1, &index_type, "MHR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
{ {
LG_LOG_ERROR_0( "Unable to create the MHR structure"); LG_LOG_ERROR_0( "Unable to create the MHR structure");
@ -3456,7 +3456,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), 1, &index_type, "SM_DSR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL); // rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), 1, &index_type, "SM_DSR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), "SHM-DSR", 1, &index_type, "SM_DSR_Manager", NULL, &SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK) if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), "SHM-DSR", 1, &index_type, "SM_DSR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
{ {
LG_LOG_ERROR_0( "Unable to create the DSR structure"); LG_LOG_ERROR_0( "Unable to create the DSR structure");
goto Error4; goto Error4;
@ -3471,7 +3471,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), 1, &index_type, "SM_ACR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL); // rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), 1, &index_type, "SM_ACR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), "SHM-ACR", 1, &index_type, "SM_ACR_Manager", NULL, &SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK) if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), "SHM-ACR", 1, &index_type, "SM_ACR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
{ {
LG_LOG_ERROR_0( "Unable to create the ACR structure"); LG_LOG_ERROR_0( "Unable to create the ACR structure");
goto Error5; goto Error5;
@ -3487,7 +3487,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), 1, &index_type, "SM_FCR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL); // rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), 1, &index_type, "SM_FCR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), "SHM-FCR", 1, &index_type, "SM_FCR_Manager", NULL, &SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK) if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), "SHM-FCR", 1, &index_type, "SM_FCR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
{ {
LG_LOG_ERROR_0( "Unable to create the FCR structure"); LG_LOG_ERROR_0( "Unable to create the FCR structure");
goto Error6; goto Error6;

View File

@ -175,34 +175,35 @@ typedef union semun
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/
/* */ /* LibShMem data struct handlers */
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/
NDT_DataStruct_Handlers SMG_DataStruct_Handlers = NDT_Handler SMG_DataStruct_Handlers[ NDD_HANDLER_NB] =
{ {
"", /* Manager function name */ { "", /* Manager function name */
NULL, /* Manager function pointer */ NULL}, /* Manager function pointer */
"", /* Init function name */ { "", /* Init function name */
NULL, /* Init function pointer */ NULL}, /* Init function pointer */
"SM_Base_Alloc", /* Alloc function name */ { "SM_Base_Alloc", /* Alloc function name */
NULL, /* Alloc function pointer */ NULL}, /* Alloc function pointer */
"SM_Base_Free", /* Free function name */ { "SM_Base_Free", /* Free function name */
NULL, /* Free function pointer */ NULL}, /* Free function pointer */
"", /* Open function name */ { "", /* Open function name */
NULL, /* Open function pointer */ NULL}, /* Open function pointer */
"", /* Close function name */ { "", /* Close function name */
NULL, /* Close function pointer */ NULL}, /* Close function pointer */
"", /* Lock function name */ { "", /* Info function name */
NULL, /* Lock function pointer */ NULL}, /* Info function pointer */
"", /* Unlock function name */ { "", /* Lock function name */
NULL /* Unlock function pointer */ NULL}, /* Lock function pointer */
{ "", /* Unlock function name */
NULL} /* Unlock function pointer */
}; };
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/
/* */ /* */
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/