library/src/network/httpd/BP-HTTPdRequests.cc
// Internal function used to destroy the argument registry.  Called automatically via BP_HTTPdRequestDestroy()
Internal function used to destroy the argument registry.  Called automatically via BP_HTTPdRequestDestroy()
Internal function used to destroy the argument registry . Called automatically via BP_HTTPdRequestDestroy ()
BP_ERROR_T BP_HTTPdRequestDestroyArgRegistry(P_BP_HTTPD_REQUEST request)
{
	if(!request)
		return ERR_FAILURE;
	if(!request->arg_hreg)
		return ERR_FAILURE;
	char * table_path[10] = {0};
	P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = NULL;
	BP_HASH_TABLE_ENTER_CRITICAL_SECTION(request->arg_hreg);
	BP_HTTPdRequestDestroyPostArgs(request);
	BP_HTTPdRequestDestroyGetArgs(request);
	BP_HTTPdRequestDestroyCookieArgs(request);
	BP_DestroyHashTableRegistry(request->arg_hreg);
	request->arg_hreg = NULL;
	BP_HASH_TABLE_LEAVE_CRITICAL_SECTION(request->arg_hreg);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_HTTPdRequestDestroyArgRegistry ( P_BP_HTTPD_REQUEST request ) { if ( ! request ) return ERR_FAILURE ; if ( ! request -> arg_hreg ) return ERR_FAILURE ; char * table_path [ 10 ] = { 0 } ; P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = NULL ; BP_HASH_TABLE_ENTER_CRITICAL_SECTION ( request -> arg_hreg ) ; BP_HTTPdRequestDestroyPostArgs ( request ) ; BP_HTTPdRequestDestroyGetArgs ( request ) ; BP_HTTPdRequestDestroyCookieArgs ( request ) ; BP_DestroyHashTableRegistry ( request -> arg_hreg ) ; request -> arg_hreg = NULL ; BP_HASH_TABLE_LEAVE_CRITICAL_SECTION ( request -> arg_hreg ) ; return ERR_SUCCESS ; }
Internal function used to destroy the argument registry.
Internal function used to destroy the argument registry .
// ensure we have a request and arguments // declare dynamic table path // declare the lookup pointer // enter critical section before making changes to the httpd hash // table registry. // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Attempt to Iterate Through the Registry %%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // request->arg_hreg->hive->hh // destroy posted arguments if any exist // destroy the get arguments if any exist // destroy cookie arguments if any exist // VERBOSITY/DEBUGGING: display the argument registry // BP_HashRegDisplay(request->arg_hreg, BP_FALSE, BP_TRUE); // destroy the hash table registry // ensure the request registry is set to null // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Exit After All Are Destroyed %%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // leave critical section // return indicating success