yumapro
24.10-3
YumaPro SDK
|
RESTCONF Core Functions. More...
Functions | |
yangapi_param_t * | yangapi_new_param (const xmlChar *parmname, uint32 parmnamelen, const xmlChar *parmval, uint32 parmvallen) |
Create a new YANGAPI paramater. More... | |
void | yangapi_free_param (yangapi_param_t *param) |
Free a YANG-API parameter. More... | |
yangapi_accept_t * | yangapi_new_accept (const xmlChar *mediatype, uint32 media_type_len, const xmlChar *submediatype, uint32 submediatype_len, const xmlChar *acc_format, uint32 acc_format_len, const xmlChar *qvalue, uint32 qvalue_len) |
Create a new YANGAPI paramater. More... | |
void | yangapi_free_accept (yangapi_accept_t *accept_entry) |
Free a YANGAPI accept header entries. More... | |
void | yangapi_clean_keyvalQ (yangapi_cb_t *rcb) |
Clean the key value Q in a request control block. More... | |
void | yangapi_clean_getnext_listQ (yangapi_cb_t *rcb, ses_cb_t *scb) |
Free all the snmp getnext list entries. More... | |
void | yangapi_clean_target_keyvalQ (yangapi_cb_t *rcb) |
Free all the snmp target keyval entries. More... | |
yangapi_cb_t * | yangapi_new_rcb (void) |
Create a new YANG-API control block. More... | |
void | yangapi_free_rcb (yangapi_cb_t *rcb) |
Free a YANGAPI control block. More... | |
void | yangapi_clean_rcb (yangapi_cb_t *rcb) |
Clean a YANGAPI/RESTCONF control block. More... | |
const xmlChar * | yangapi_get_method_name (yangapi_method_t method_enum) |
Get the method name from its enum. More... | |
uint8 | yangapi_cvt_method_coap (yangapi_method_t method_enum) |
Get the libcoap numeric value for the HTTP method enum. More... | |
restconf_content_t | yangapi_get_content_enum (const xmlChar *content) |
Get the enum for the content query parameter from the query URI part. More... | |
const xmlChar * | yangapi_get_content_name (restconf_content_t content) |
Get the keyword for the specified restconf_content_t enumeration. More... | |
restconf_qparam_t | yangapi_get_restconf_qparam_enum (const xmlChar *param) |
Get the enum for a query parameter from the query URI part. More... | |
RESTCONF Core Functions.
void yangapi_clean_getnext_listQ | ( | yangapi_cb_t * | rcb, |
ses_cb_t * | scb | ||
) |
Free all the snmp getnext list entries.
rcb | control block to use |
scb | control block to use |
void yangapi_clean_keyvalQ | ( | yangapi_cb_t * | rcb | ) |
Clean the key value Q in a request control block.
Free all the GET2 keyvals in a queue
rcb | control block to use |
void yangapi_clean_rcb | ( | yangapi_cb_t * | rcb | ) |
Clean a YANGAPI/RESTCONF control block.
rcb | Yuma REST-API control block to free |
void yangapi_clean_target_keyvalQ | ( | yangapi_cb_t * | rcb | ) |
Free all the snmp target keyval entries.
rcb | control block to use |
uint8 yangapi_cvt_method_coap | ( | yangapi_method_t | method_enum | ) |
Get the libcoap numeric value for the HTTP method enum.
method_enum | method name enumeration |
void yangapi_free_accept | ( | yangapi_accept_t * | accept_entry | ) |
Free a YANGAPI accept header entries.
accept_entry | Yuma REST-API parameter to free |
void yangapi_free_param | ( | yangapi_param_t * | param | ) |
Free a YANG-API parameter.
param | Yuma YANG-API parameter to free |
void yangapi_free_rcb | ( | yangapi_cb_t * | rcb | ) |
Free a YANGAPI control block.
rcb | Yuma YANG-API control block to free |
restconf_content_t yangapi_get_content_enum | ( | const xmlChar * | content | ) |
Get the enum for the content query parameter from the query URI part.
content | string for the content query parameter |
const xmlChar * yangapi_get_content_name | ( | restconf_content_t | content | ) |
Get the keyword for the specified restconf_content_t enumeration.
content | content query param name |
const xmlChar * yangapi_get_method_name | ( | yangapi_method_t | method_enum | ) |
Get the method name from its enum.
method_enum | method name enumeration |
restconf_qparam_t yangapi_get_restconf_qparam_enum | ( | const xmlChar * | param | ) |
Get the enum for a query parameter from the query URI part.
param | string for the query parameter |
yangapi_accept_t * yangapi_new_accept | ( | const xmlChar * | mediatype, |
uint32 | media_type_len, | ||
const xmlChar * | submediatype, | ||
uint32 | submediatype_len, | ||
const xmlChar * | acc_format, | ||
uint32 | acc_format_len, | ||
const xmlChar * | qvalue, | ||
uint32 | qvalue_len | ||
) |
Create a new YANGAPI paramater.
mediatype | media type found |
media_type_len | length of mediatype parameter |
submediatype | sub-media type found |
submediatype_len | length of submediatype parameter |
acc_format | accept format parameter |
acc_format_len | length of accept format parameter |
qvalue | Q value parametern |
qvalue_len | length of Q value parameter |
yangapi_param_t * yangapi_new_param | ( | const xmlChar * | parmname, |
uint32 | parmnamelen, | ||
const xmlChar * | parmval, | ||
uint32 | parmvallen | ||
) |
Create a new YANGAPI paramater.
parmname | parameter name |
parmnamelen | parameter name string length |
parmval | parameter value |
parmvallen | parameter value string length |
yangapi_cb_t * yangapi_new_rcb | ( | void | ) |
Create a new YANG-API control block.