yumapro
24.10-2
YumaPro SDK
|
NETCONF <rpc> Request and <rpc-reply> Response Messages. More...
Data Structures | |
struct | rpc_msg_t |
NETCONF Server and Client RPC Request/Reply Message Header. More... | |
Enumerations | |
enum | rpc_data_t { RPC_DATA_NONE , RPC_DATA_STD , RPC_DATA_YANG } |
Type of the <rpc-reply> data source. More... | |
enum | rpc_rpytyp_t { RPC_RPYTYP_NONE , RPC_RPYTYP_OK , RPC_RPYTYP_ERROR , RPC_RPYTYP_DATA } |
Type of the <rpc-reply> sent to client. More... | |
Functions | |
rpc_msg_t * | rpc_new_msg (void) |
Malloc and initialize a new rpc_msg_t struct. More... | |
rpc_msg_t * | rpc_new_out_msg (void) |
Malloc and initialize a new rpc_msg_t struct for output or for dummy use. More... | |
void | rpc_free_msg (rpc_msg_t *msg) |
Free all the memory used by the specified rpc_msg_t. More... | |
void | rpc_msg_add_error_data (rpc_msg_t *msg, val_value_t *val) |
Add error data to the response message. More... | |
const xmlChar * | rpc_msg_get_reply_type (rpc_rpytyp_t rpytyp) |
Get the reply type string from the message type. More... | |
NETCONF <rpc> Request and <rpc-reply> Response Messages.
Format defined in RFC 6241.
enum rpc_data_t |
enum rpc_rpytyp_t |
void rpc_free_msg | ( | rpc_msg_t * | msg | ) |
void rpc_msg_add_error_data | ( | rpc_msg_t * | msg, |
val_value_t * | val | ||
) |
Add error data to the response message.
Used by the server only
Add a val_value_t node that will be used in the error response sent to the client
msg | rpc_msg_t to add data into |
val | malloced error data node to add to error record error-info !!! This value node will be consumed and freed later !!! |
const xmlChar * rpc_msg_get_reply_type | ( | rpc_rpytyp_t | rpytyp | ) |
Get the reply type string from the message type.
rpytyp | reply type |
rpc_msg_t * rpc_new_msg | ( | void | ) |
Malloc and initialize a new rpc_msg_t struct.