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 <dave@barachs.net>
Change-Id: I9a80a6afa635f5cdedee554ee9abe400fafc1cb6
diff --git a/src/tools/g2/clib.c b/src/tools/g2/clib.c
index da9fd52..3cfc263 100644
--- a/src/tools/g2/clib.c
+++ b/src/tools/g2/clib.c
@@ -141,7 +141,7 @@
delta = ep->time - starttime;
- add_clib_event (delta, ep->track, ep->type + 1, i);
+ add_clib_event (delta, ep->track, ep->event_type + 1, i);
}
cpel_event_finalize();