- Add DataStruct Handlers,
- Update Open_DataStruct() API.
This commit is contained in:
@@ -118,6 +118,37 @@ NDT_Base NDG_Base =
|
||||
};
|
||||
|
||||
|
||||
|
||||
NDT_DataStruct_Handlers NDG_Handlers_Default =
|
||||
{
|
||||
"", /* Default Manager function name */
|
||||
NULL, /* Default Manager function pointer */
|
||||
"", /* Default Init function name */
|
||||
NULL, /* Default Init function pointer */
|
||||
|
||||
// "ND_Default_Allocator", /* Default Alloc function name */
|
||||
// ND_Default_Allocator, /* Default Alloc function pointer */
|
||||
// "ND_Default_Deallocator", /* Default Free function name */
|
||||
// ND_Default_Deallocator, /* Default Free function pointer */
|
||||
|
||||
"", /* Default Alloc function name */
|
||||
NULL, /* Default Alloc function pointer */
|
||||
"", /* Default Free function name */
|
||||
NULL, /* Default Free function pointer */
|
||||
"", /* Default Open function name */
|
||||
NULL, /* Default Open function pointer */
|
||||
"", /* Default Close function name */
|
||||
NULL, /* Default Close function pointer */
|
||||
"", /* Default Lock function name */
|
||||
NULL, /* Default Lock function pointer */
|
||||
"", /* Default Unlock function name */
|
||||
NULL /* Default Unlock function pointer */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
@@ -188,15 +219,21 @@ NDT_Status ND_Node_Free( NDT_Root *, NDT_Node *);
|
||||
NDT_Status ND_Index_Clear( NDT_Root *, NDT_Index_Id);
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Création de la racine d'une structure de données quelconque */
|
||||
/* Alocate and initialize a new data structure root node */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* (O) New_Root : adresse du pointeur sur la nouvelle racine */
|
||||
/* (I) Type : type de la structure de données */
|
||||
/* (I) Allocater : pointeur vers la fonction d'allocation */
|
||||
/* (I) Deallocater : pointeur vers la fonction de désallocation */
|
||||
/* (I) Data : pointeur de données utiles à l'allocateur */
|
||||
/* (O) Root_Ptr_Ptr: Pointer adress of the new sata structure */
|
||||
/* (I) DataStruct_Name: Name of the data structure */
|
||||
/* (I) Index_Nb: Number of index */
|
||||
/* (I) Index_Type_Ptr: Array of Index type (List, tree, ...) */
|
||||
/* (I) Handlers_Ptr: Pointer to the data structure handlers */
|
||||
/* (I) Own_Value: Flag indicating if the structure is the node owner */
|
||||
/* (I) Data_Ptr: User pointer */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
NDT_Status ND_Node_Root_Alloc( NDT_Root **, NDT_Index_Nb, NDT_Index_Type[], char *, NDT_Manager *, char *, NDT_Allocator *, char *, NDT_Deallocator *, short, void *);
|
||||
//NDT_Status ND_Node_Root_Alloc( NDT_Root **, NDT_Index_Nb, NDT_Index_Type[], char *, NDT_Manager *, char *, NDT_Allocator *, char *, NDT_Deallocator *, short, void *);
|
||||
|
||||
NDT_Status ND_Node_Root_Alloc( NDT_Root **Root_Ptr_Ptr, NDT_DataStruct_Name Name, NDT_Index_Nb Index_Nb, NDT_Index_Type *Type_Ptr, NDT_DataStruct_Handlers *Handlers_Ptr, short Own_Value, void *Data_Ptr);
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Destruction d'une racine */
|
||||
|
||||
Reference in New Issue
Block a user