mirror of
https://github.com/Hizenberg469/Memory-Leak-Detector.git
synced 2026-04-19 17:52:26 +03:00
Implementation finished
This commit is contained in:
@@ -204,6 +204,15 @@ xcalloc(object_db_t* object_db, char* struct_name, int units);
|
||||
|
||||
|
||||
|
||||
/*****API to calloc the object******/
|
||||
|
||||
|
||||
/*****API to calloc the object******/
|
||||
|
||||
void
|
||||
xfree(object_db_t* object_db, void* ptr);
|
||||
|
||||
|
||||
/*****API to calloc the object******/
|
||||
|
||||
|
||||
@@ -211,16 +220,35 @@ xcalloc(object_db_t* object_db, char* struct_name, int units);
|
||||
/*****APIs to register root objects******/
|
||||
|
||||
void
|
||||
mld_register_root_object(object_db_t* object_db,
|
||||
mld_register_global_object_as_root(object_db_t* object_db,
|
||||
void* objptr,
|
||||
char* struct_name,
|
||||
unsigned int units);
|
||||
|
||||
void
|
||||
set_mld_object_as_global_root(object_db_t* object_db, void* obj_ptr);
|
||||
mld_set_dynamic_object_as_root(object_db_t* object_db, void* obj_ptr);
|
||||
|
||||
/*****APIs to register root objects******/
|
||||
|
||||
|
||||
/*********************************************APIs' to implement MLD algorithm*************************************************/
|
||||
|
||||
void
|
||||
report_leaked_objects(object_db_t* object_db);
|
||||
|
||||
/*********************************************APIs' to implement MLD algorithm*************************************************/
|
||||
|
||||
|
||||
/********Adding support for primitive data type********/
|
||||
|
||||
void
|
||||
run_mld_algorithm(object_db_t* object_db);
|
||||
|
||||
void
|
||||
mld_init_primitive_data_types_support(struct_db_t* struct_db);
|
||||
|
||||
/********Adding support for primitive data type********/
|
||||
|
||||
/*
|
||||
* Declaration for OBJECT DATABASE
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user