vppinfra: remove duplicate api function definition
vl_api_c_string_to_api_string declared in api_types.h and defined in api_shared.c. Remove from jsonformat Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I994c8c13b7246a857464c1f879432f73692c6d1f
This commit is contained in:

committed by
Florin Coras

parent
cba1c2258b
commit
bb1413bd1e
@ -428,17 +428,6 @@ format_ip4_address (u8 * s, va_list * args)
|
|||||||
return format (s, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
|
return format (s, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
vl_api_c_string_to_api_string (const char *buf, vl_api_string_t * str)
|
|
||||||
{
|
|
||||||
/* copy without nul terminator */
|
|
||||||
u32 len = strlen (buf);
|
|
||||||
if (len > 0)
|
|
||||||
clib_memcpy_fast (str->buf, buf, len);
|
|
||||||
str->length = htonl (len);
|
|
||||||
return len + sizeof (u32);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
vl_api_string_cJSON_AddToObject(cJSON * const object, const char * const name, vl_api_string_t *astr)
|
vl_api_string_cJSON_AddToObject(cJSON * const object, const char * const name, vl_api_string_t *astr)
|
||||||
{
|
{
|
||||||
|
@ -83,8 +83,6 @@ unformat_vl_api_timestamp_t (unformat_input_t *input, va_list *args);
|
|||||||
CJSON_PUBLIC (uword)
|
CJSON_PUBLIC (uword)
|
||||||
unformat_vl_api_gbp_scope_t (unformat_input_t *input, va_list *args);
|
unformat_vl_api_gbp_scope_t (unformat_input_t *input, va_list *args);
|
||||||
|
|
||||||
CJSON_PUBLIC (int)
|
|
||||||
vl_api_c_string_to_api_string (const char *buf, vl_api_string_t *str);
|
|
||||||
CJSON_PUBLIC (void)
|
CJSON_PUBLIC (void)
|
||||||
vl_api_string_cJSON_AddToObject (cJSON *const object, const char *const name,
|
vl_api_string_cJSON_AddToObject (cJSON *const object, const char *const name,
|
||||||
vl_api_string_t *astr);
|
vl_api_string_t *astr);
|
||||||
|
Reference in New Issue
Block a user