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

	Status = Xbir_SsiJsonBuildSysInfo(Buffer, XBIR_HTTP_BUFFER_SIZE);

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

	return Status;
}
/*****************************************************************************/
/**
 * @brief
 * This function processes HTTP GET system information 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 system information 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 system information 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_HttpProcessGetSysInfoReq (struct tcp_pcb *Tpcb, u8 *HttpReq,
	u16 HttpReqLen)
{
	int Status = XST_FAILURE;
	char Buffer[XBIR_HTTP_BUFFER_SIZE];
	Status = Xbir_SsiJsonBuildSysInfo(Buffer, XBIR_HTTP_BUFFER_SIZE);
	if (XST_SUCCESS == Status) {
		Status = Xbir_HttpSendResponseJson(Tpcb, HttpReq, HttpReqLen,
			 Buffer, strlen(Buffer));
	}
	return Status;
}
static int Xbir_HttpProcessGetSysInfoReq ( struct tcp_pcb * Tpcb , u8 * HttpReq , u16 HttpReqLen ) { int Status = XST_FAILURE ; char Buffer [ XBIR_HTTP_BUFFER_SIZE ] ; Status = Xbir_SsiJsonBuildSysInfo ( Buffer , XBIR_HTTP_BUFFER_SIZE ) ; if ( XST_SUCCESS == Status ) { Status = Xbir_HttpSendResponseJson ( Tpcb , HttpReq , HttpReqLen , Buffer , strlen ( Buffer ) ) ; } return Status ; }
@brief
 This function processes HTTP GET system information request.
@brief This function processes HTTP GET system information request .