diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2021-07-23 22:03:05 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-10-18 07:03:12 +0000 |
commit | f0e67d78ae23ff3d5751ea10e9e76cb6e81ba4a5 (patch) | |
tree | c63b1ac48809a7247bb288e01d5c9cdfb6038b7c /src/vpp-api | |
parent | 2e55823af6c1cc6856e4a1f2cea659170bd76fb7 (diff) |
interface: add api test file
Type: improvement
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Ib07029204ecf12bf2adb5a39afa54bc98fb81f34
Diffstat (limited to 'src/vpp-api')
-rw-r--r-- | src/vpp-api/client/test.c | 2 | ||||
-rw-r--r-- | src/vpp-api/vapi/vapi.c | 2 | ||||
-rwxr-xr-x | src/vpp-api/vapi/vapi_c_gen.py | 2 | ||||
-rw-r--r-- | src/vpp-api/vapi/vapi_c_test.c | 2 | ||||
-rw-r--r-- | src/vpp-api/vapi/vapi_cpp_test.cpp | 1 |
5 files changed, 7 insertions, 2 deletions
diff --git a/src/vpp-api/client/test.c b/src/vpp-api/client/test.c index b7e6f017445..9855ffa1880 100644 --- a/src/vpp-api/client/test.c +++ b/src/vpp-api/client/test.c @@ -38,6 +38,8 @@ #include <vlibmemory/vlib.api_enum.h> #include <vlibmemory/vlib.api_types.h> +#include <vlibmemory/memclnt.api_enum.h> +#include <vlibmemory/memclnt.api_types.h> #include <vpp/api/vpe.api_enum.h> #include <vpp/api/vpe.api_types.h> diff --git a/src/vpp-api/vapi/vapi.c b/src/vpp-api/vapi/vapi.c index 1bd8e5bdd9f..513ff98b30c 100644 --- a/src/vpp-api/vapi/vapi.c +++ b/src/vpp-api/vapi/vapi.c @@ -31,8 +31,8 @@ #include <vlibapi/api_common.h> #include <vlibmemory/memory_client.h> -#include <vapi/vlib.api.vapi.h> #include <vapi/memclnt.api.vapi.h> +#include <vapi/vlib.api.vapi.h> /* we need to use control pings for some stuff and because we're forced to put * the code in headers, we need a way to be able to grab the ids of these diff --git a/src/vpp-api/vapi/vapi_c_gen.py b/src/vpp-api/vapi/vapi_c_gen.py index eacfab41555..1a5665e5500 100755 --- a/src/vpp-api/vapi/vapi_c_gen.py +++ b/src/vpp-api/vapi/vapi_c_gen.py @@ -705,7 +705,7 @@ def gen_json_unified_header(parser, logger, j, io, name): print("#ifdef __cplusplus") print("extern \"C\" {") print("#endif") - if name == "vlib.api.vapi.h": + if name == "memclnt.api.vapi.h": print("") print("static inline vapi_error_e vapi_send_with_control_ping " "(vapi_ctx_t ctx, void * msg, u32 context);") diff --git a/src/vpp-api/vapi/vapi_c_test.c b/src/vpp-api/vapi/vapi_c_test.c index 52b930d422f..85fc8b3504c 100644 --- a/src/vpp-api/vapi/vapi_c_test.c +++ b/src/vpp-api/vapi/vapi_c_test.c @@ -24,6 +24,8 @@ #include <check.h> #include <vppinfra/string.h> #include <vapi/vapi.h> +#include <vapi/memclnt.api.vapi.h> +#include <vapi/vlib.api.vapi.h> #include <vapi/vpe.api.vapi.h> #include <vapi/interface.api.vapi.h> #include <vapi/l2.api.vapi.h> diff --git a/src/vpp-api/vapi/vapi_cpp_test.cpp b/src/vpp-api/vapi/vapi_cpp_test.cpp index c574dd70b96..c0e0cdc3ab8 100644 --- a/src/vpp-api/vapi/vapi_cpp_test.cpp +++ b/src/vpp-api/vapi/vapi_cpp_test.cpp @@ -21,6 +21,7 @@ #include <assert.h> #include <setjmp.h> #include <check.h> +#include <vapi/memclnt.api.vapi.h> #include <vapi/vapi.hpp> #include <vapi/vpe.api.vapi.hpp> #include <vapi/interface.api.vapi.hpp> |