lib/sw_apps/img_rcvry/src/xbir_http.c
static int Xbir_HttpProcessGetBootImgStatusReq (struct tcp_pcb *Tpcb,
	u8 *HttpReq, u16 HttpReqLen)
{
	int Status = XST_FAILURE;
	char Buffer[100U] = {0U};

	Status = Xbir_SsiJsonBuildBootImgStatus(Buffer, 100U);
	if (Status == XST_SUCCESS) {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			Buffer, strlen(Buffer));
	}

	return Status;
}
/*****************************************************************************/
/**
 * @brief
 * This function processes HTTP GET boot image status request.
 *
 * @param	Tpcb		Pointer to TCP PCB
 * @param	HttpReq		Pointer to HTTP payload
 * @param	HttpReqLen	HTTP payload length
 *
 * @return	XST_SUCCESS if request is processed successfully
 *		XST_FAILURE if request is not processed
 *
 *****************************************************************************/
@brief
This function processes HTTP GET boot image status request.

@param       Tpcb            Pointer to TCP PCB
@param       HttpReq         Pointer to HTTP payload
@param       HttpReqLen      HTTP payload length

@return      XST_SUCCESS if request is processed successfully
XST_FAILURE if request is not processed
@brief This function processes HTTP GET boot image status request . @param Tpcb Pointer to TCP PCB @param HttpReq Pointer to HTTP payload @param HttpReqLen HTTP payload length @return XST_SUCCESS if request is processed successfully XST_FAILURE if request is not processed
static int Xbir_HttpProcessGetBootImgStatusReq (struct tcp_pcb *Tpcb,
	u8 *HttpReq, u16 HttpReqLen)
{
	int Status = XST_FAILURE;
	char Buffer[100U] = {0U};
	Status = Xbir_SsiJsonBuildBootImgStatus(Buffer, 100U);
	if (Status == XST_SUCCESS) {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			Buffer, strlen(Buffer));
	}
	return Status;
}
static int Xbir_HttpProcessGetBootImgStatusReq ( struct tcp_pcb * Tpcb , u8 * HttpReq , u16 HttpReqLen ) { int Status = XST_FAILURE ; char Buffer [ 100U ] = { 0U } ; Status = Xbir_SsiJsonBuildBootImgStatus ( Buffer , 100U ) ; if ( Status == XST_SUCCESS ) { Status = Xbir_HttpSendResponseJson ( Tpcb , HttpReq , HttpReqLen , Buffer , strlen ( Buffer ) ) ; } return Status ; }
@brief
 This function processes HTTP GET boot image status request.
@brief This function processes HTTP GET boot image status request .