yumapro
24.10-2
YumaPro SDK
|
RESTCONF Reply Handler. More...
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... | |
RESTCONF Reply Handler.
Used by YANG-API and RESTCONF to send an HTTP response to the client
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>
scb | session control block |
rcb | yangapi control block to use |
msg | rpc_msg_t in progress |
res | general request status |
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
scb | session control block |
rcb | yangapi control block to use |
msg | rpc_msg_t in progress |
valnode | value tree to output |
indent | message start indent amount |
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
scb | session control block |
rcb | yangapi control block to use |
msg | rpc_msg_t in progress |
res | general request status |
is_events | TRUE if starting SSE event stream; FALSE if plain reply |
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
scb | session control block |
rcb | yangapi control block to use |
msg | rpc_msg_t in progress |
res | general request status |