-static inline int
-vl_api_to_api_string (u32 len, const char *buf, vl_api_string_t * str)
-{
- memcpy(str->buf, buf, len);
- str->length = htonl (len);
- return len + sizeof (u32);
-}
+/* Nul terminated string to vl_api_string_t */
+extern int vl_api_c_string_to_api_string (const char *buf, vl_api_string_t * str);
+/* NON nul terminated vector to vl_api_string_t */
+extern int vl_api_vec_to_api_string (const u8 *vec, vl_api_string_t * str);