From e09ae01f6777434f41ba8a5a564c8078565ecfea Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 19 Aug 2020 06:59:53 -0400 Subject: vppinfra: minor tweaks for cgo interoperation 'type' is a keyword in golang, so s/type/event_type/ in elog.h and elsewhere. Add vec_len_not_inline(...), elog_write_file_not_inline(...) and elog_read_file_not_inline(...) since the inline forms aren't usable. More such tweaks may follow. Type: improvement Signed-off-by: Dave Barach Change-Id: I9a80a6afa635f5cdedee554ee9abe400fafc1cb6 --- src/vppinfra/vec.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/vppinfra/vec.c') diff --git a/src/vppinfra/vec.c b/src/vppinfra/vec.c index 05a557ebb54..441e1acc576 100644 --- a/src/vppinfra/vec.c +++ b/src/vppinfra/vec.c @@ -140,6 +140,18 @@ clib_mem_is_vec_h (void *v, uword header_bytes) return clib_mem_is_heap_object (vec_header (v, header_bytes)); } +u32 +vec_len_not_inline (void *v) +{ + return vec_len (v); +} + +void +vec_free_not_inline (void *v) +{ + vec_free (v); +} + /** \cond */ #ifdef TEST -- cgit 1.2.3-korg