* Added experimental binary search API function: xml_binsearch
* Added content parameter to `clicon_rpc_get` (-1 or CONTENT_ALL is default) * Reverted change in clixon-lib.yang
This commit is contained in:
parent
8b7b7b0f60
commit
10a2dbe8ec
17 changed files with 137 additions and 250 deletions
|
|
@ -153,16 +153,6 @@ static const map_str2int http_media_map[] = {
|
|||
{NULL, -1}
|
||||
};
|
||||
|
||||
/* See RFC 8040 4.8.1
|
||||
* @see query_content_str2int
|
||||
*/
|
||||
static const map_str2int query_content_map[] = {
|
||||
{"config", CONTENT_CONFIG},
|
||||
{"nonconfig", CONTENT_NONCONFIG},
|
||||
{"all", CONTENT_ALL},
|
||||
{NULL, -1}
|
||||
};
|
||||
|
||||
int
|
||||
restconf_err2code(char *tag)
|
||||
{
|
||||
|
|
@ -187,18 +177,6 @@ restconf_media_int2str(restconf_media media)
|
|||
return clicon_int2str(http_media_map, media);
|
||||
}
|
||||
|
||||
const query_content
|
||||
query_content_str2int(char *str)
|
||||
{
|
||||
return clicon_str2int(query_content_map, str);
|
||||
}
|
||||
|
||||
const char *
|
||||
query_content_int2str(query_content nr)
|
||||
{
|
||||
return clicon_int2str(query_content_map, nr);
|
||||
}
|
||||
|
||||
/*! Return media_in from Content-Type, -1 if not found or unrecognized
|
||||
* @note media-type syntax does not support parameters
|
||||
* @see RFC7231 Sec 3.1.1.1 for media-type syntax type:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue