lib/sw_apps/img_rcvry/src/xbir_http.c
Xbir_HttpArg *Xbir_HttpPallocArg (void)
{
	Xbir_HttpArg *HttpArg = &(Http_ArgArray[Http_ArgArrayIndex]);
	Http_ArgArrayIndex++;
	if (Http_ArgArrayIndex == XBIR_HTTP_ARG_ARRAY_SIZE)
		Http_ArgArrayIndex = 0;
	HttpArg->Count = Http_ArgCount++;
	memset(&HttpArg->Fil, 0, sizeof(HttpArg->Fil));
	HttpArg->Fsize = 0;
	HttpArg->PktCount = 0;

	return HttpArg;
}
/*****************************************************************************/
/**
 * @brief
 * This function allocates the Xbir_HttpArg instance from preallocated static
 * memory.
 *
 * @param	None
 *
 * @return	Pointer to Xbir_HttpArg instance
 *
 *****************************************************************************/
@brief
This function allocates the Xbir_HttpArg instance from preallocated static
memory.

@param       None

@return      Pointer to Xbir_HttpArg instance
@brief This function allocates the Xbir_HttpArg instance from preallocated static memory . @param None @return Pointer to Xbir_HttpArg instance
Xbir_HttpArg *Xbir_HttpPallocArg (void)
{
	Xbir_HttpArg *HttpArg = &(Http_ArgArray[Http_ArgArrayIndex]);
	Http_ArgArrayIndex++;
	if (Http_ArgArrayIndex == XBIR_HTTP_ARG_ARRAY_SIZE)
		Http_ArgArrayIndex = 0;
	HttpArg->Count = Http_ArgCount++;
	memset(&HttpArg->Fil, 0, sizeof(HttpArg->Fil));
	HttpArg->Fsize = 0;
	HttpArg->PktCount = 0;
	return HttpArg;
}
Xbir_HttpArg * Xbir_HttpPallocArg ( void ) { Xbir_HttpArg * HttpArg = & ( Http_ArgArray [ Http_ArgArrayIndex ] ) ; Http_ArgArrayIndex ++ ; if ( Http_ArgArrayIndex == XBIR_HTTP_ARG_ARRAY_SIZE ) Http_ArgArrayIndex = 0 ; HttpArg -> Count = Http_ArgCount ++ ; memset ( & HttpArg -> Fil , 0 , sizeof ( HttpArg -> Fil ) ) ; HttpArg -> Fsize = 0 ; HttpArg -> PktCount = 0 ; return HttpArg ; }
@brief
 This function allocates the Xbir_HttpArg instance from preallocated static
 memory.
@brief This function allocates the Xbir_HttpArg instance from preallocated static memory .