diff options
author | Dave Barach <dave@barachs.net> | 2020-08-19 06:59:53 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2020-08-19 07:04:36 -0400 |
commit | e09ae01f6777434f41ba8a5a564c8078565ecfea (patch) | |
tree | 5cdea178576d79d1a8803401fb1e42cf1270a6f4 /src/vppinfra/vec_bootstrap.h | |
parent | 5c1cba5401b499b80bd46e783b5a444f18991922 (diff) |
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
Diffstat (limited to 'src/vppinfra/vec_bootstrap.h')
-rw-r--r-- | src/vppinfra/vec_bootstrap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/vec_bootstrap.h b/src/vppinfra/vec_bootstrap.h index 501db61c016..53968070c0e 100644 --- a/src/vppinfra/vec_bootstrap.h +++ b/src/vppinfra/vec_bootstrap.h @@ -140,6 +140,7 @@ vec_aligned_header_end (void *v, uword header_bytes, uword align) */ #define vec_len(v) ((v) ? _vec_len(v) : 0) +u32 vec_len_not_inline (void *v); /** \brief Vector's NUMA id (lvalue-capable) |