lib/sw_apps/img_rcvry/src/xbir_http.c
static int Xbir_HttpSendStatus (struct tcp_pcb *Tpcb, u8 *HttpReq,
	u16 HttpReqLen, u32 InStatus)
{
	int Status = XST_FAILURE;
	if ( XST_SUCCESS == InStatus) {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			"{\"Status\":\"Success\"}",
			strlen("{\"Status\":\"Success\"}"));
	}
	else {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			"{\"Status\":\"Failed\"}",
			strlen("{\"Status\":\"Failed\"}"));
	}

	return Status;
}
/*****************************************************************************/
/**
 * @brief
 * This function sends the input Status in JSON formave over HTTP as a response.
 *
 * @param	Tpcb		Pointer to TCP PCB
 * @param	HttpReq		Pointer to HTTP payload
 * @param	HttpReqLen	HTTP payload length
 * @param	Status		Status to be sent
 *
 * @return	XST_SUCCESS if request is processed successfully
 *		XST_FAILURE if request is not processed
 *
 *****************************************************************************/
@brief
This function sends the input Status in JSON formave over HTTP as a response.

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

@return      XST_SUCCESS if request is processed successfully
XST_FAILURE if request is not processed
@brief This function sends the input Status in JSON formave over HTTP as a response . @param Tpcb Pointer to TCP PCB @param HttpReq Pointer to HTTP payload @param HttpReqLen HTTP payload length @param Status Status to be sent @return XST_SUCCESS if request is processed successfully XST_FAILURE if request is not processed
static int Xbir_HttpSendStatus (struct tcp_pcb *Tpcb, u8 *HttpReq,
	u16 HttpReqLen, u32 InStatus)
{
	int Status = XST_FAILURE;
	if ( XST_SUCCESS == InStatus) {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			"{\"Status\":\"Success\"}",
			strlen("{\"Status\":\"Success\"}"));
	}
	else {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			"{\"Status\":\"Failed\"}",
			strlen("{\"Status\":\"Failed\"}"));
	}
	return Status;
}
static int Xbir_HttpSendStatus ( struct tcp_pcb * Tpcb , u8 * HttpReq , u16 HttpReqLen , u32 InStatus ) { int Status = XST_FAILURE ; if ( XST_SUCCESS == InStatus ) { Status = Xbir_HttpSendResponseJson ( Tpcb , HttpReq , HttpReqLen , " \" \" \" \" " , strlen ( " \" \" \" \" " ) ) ; } else { Status = Xbir_HttpSendResponseJson ( Tpcb , HttpReq , HttpReqLen , " \" \" \" \" " , strlen ( " \" \" \" \" " ) ) ; } return Status ; }
@brief
 This function sends the input Status in JSON formave over HTTP as a response.
@brief This function sends the input Status in JSON formave over HTTP as a response .