yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
Reply Handler

RESTCONF Reply Handler. More...

Collaboration diagram for Reply Handler:

Functions

status_t agt_yangapi_reply_send (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, status_t res, boolean is_events)
 Send a RESTCONF reply. More...
 
status_t agt_yangapi_yangpatch_reply_send (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, status_t res)
 Send a YANG Patch reply. More...
 
void agt_yangapi_reply_output_last_keys (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, val_value_t *valnode, int32 indent)
 Output the last-keys for <get-bulk> More...
 
status_t agt_yangapi_getbulk_reply_send (ses_cb_t *scb, yangapi_cb_t *rcb, rpc_msg_t *msg, status_t res)
 Output a RESTCONF <get-bulk> reply. More...
 

Detailed Description

RESTCONF Reply Handler.

Used by YANG-API and RESTCONF to send an HTTP response to the client

Function Documentation

◆ agt_yangapi_getbulk_reply_send()

status_t agt_yangapi_getbulk_reply_send ( ses_cb_t scb,
yangapi_cb_t rcb,
rpc_msg_t msg,
status_t  res 
)

Output a RESTCONF <get-bulk> reply.

Operation succeeded or failed Return a REST API HTTP message Used by RESTCONF <get-bulk>

Parameters
scbsession control block
rcbyangapi control block to use
msgrpc_msg_t in progress
resgeneral request status
Returns
status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ agt_yangapi_reply_output_last_keys()

void agt_yangapi_reply_output_last_keys ( ses_cb_t scb,
yangapi_cb_t rcb,
rpc_msg_t msg,
val_value_t valnode,
int32  indent 
)

Output the last-keys for <get-bulk>

Output a complete node from a val_value_t tree. Number of levels printed depends on depth parameter

Parameters
scbsession control block
rcbyangapi control block to use
msgrpc_msg_t in progress
valnodevalue tree to output
indentmessage start indent amount
Here is the call graph for this function:

◆ agt_yangapi_reply_send()

status_t agt_yangapi_reply_send ( ses_cb_t scb,
yangapi_cb_t rcb,
rpc_msg_t msg,
status_t  res,
boolean  is_events 
)

Send a RESTCONF reply.

Operation succeeded or failed Return a REST API HTTP message

Parameters
scbsession control block
rcbyangapi control block to use
msgrpc_msg_t in progress
resgeneral request status
is_eventsTRUE if starting SSE event stream; FALSE if plain reply
Returns
status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ agt_yangapi_yangpatch_reply_send()

status_t agt_yangapi_yangpatch_reply_send ( ses_cb_t scb,
yangapi_cb_t rcb,
rpc_msg_t msg,
status_t  res 
)

Send a YANG Patch reply.

Operation succeeded or failed Return a YANG-PATCH HTTP message

Parameters
scbsession control block
rcbyangapi control block to use
msgrpc_msg_t in progress
resgeneral request status
Returns
status
Here is the call graph for this function:
Here is the caller graph for this function: