library/src/datastructures/BP-HashTable.cc
// Attempts to destroy the table at the current path, recursing
// into the path and destroying all data recursively inward till
// finally destroying itself.  This requires that everything in the
// hive is unlocked, or the request will fail with ERR_FAILURE.
Attempts to destroy the table at the current path, recursing
into the path and destroying all data recursively inward till
finally destroying itself.  This requires that everything in the
hive is unlocked, or the request will fail with ERR_FAILURE.
Attempts to destroy the table at the current path recursing into the path and destroying all data recursively inward till finally destroying itself . This requires that everything in the hive is unlocked or the request will fail with ERR_FAILURE .
BP_ERROR_T BP_HashRegDestroyTableByPath
(
	P_BP_HASH_TABLE_REGISTRY hreg,
	BP_HASH_TABLE_TRAVERSAL_PATH table_path
)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(ERR_FAILURE);
	if(!table_path)
		return ERR_FAILURE;
	if(!table_path[0])
		return ERR_FAILURE;
	P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableByPath(hreg, table_path);
	if(!tmp_lookup)
	{
		return ERR_FAILURE;
	}
	return BP_HashRegDestroyTable(hreg, tmp_lookup);
}
BP_ERROR_T BP_HashRegDestroyTableByPath ( P_BP_HASH_TABLE_REGISTRY hreg , BP_HASH_TABLE_TRAVERSAL_PATH table_path ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( ERR_FAILURE ) ; if ( ! table_path ) return ERR_FAILURE ; if ( ! table_path [ 0 ] ) return ERR_FAILURE ; P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableByPath ( hreg , table_path ) ; if ( ! tmp_lookup ) { return ERR_FAILURE ; } return BP_HashRegDestroyTable ( hreg , tmp_lookup ) ; }
Attempts to destroy the table at the current path, recursing
into the path and destroying all data recursively inward till
finally destroying itself.
Attempts to destroy the table at the current path recursing into the path and destroying all data recursively inward till finally destroying itself .
// macro to override hreg on null // ensure we have a table path to work with // attempt to lookup the table // destroy the table by path