Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ioam: remove api boilerplate
[vpp.git]
/
src
/
plugins
/
ioam
/
udp-ping
/
udp_ping_test.c
diff --git
a/src/plugins/ioam/udp-ping/udp_ping_test.c
b/src/plugins/ioam/udp-ping/udp_ping_test.c
index
9c79596
..
d435b22
100644
(file)
--- a/
src/plugins/ioam/udp-ping/udp_ping_test.c
+++ b/
src/plugins/ioam/udp-ping/udp_ping_test.c
@@
-26,31
+26,18
@@
#include <vnet/ip/ip.h>
/* Declare message IDs */
#include <vnet/ip/ip.h>
/* Declare message IDs */
-#include <ioam/udp-ping/udp_ping_msg_enum.h>
-
-/* define message structures */
-#define vl_typedefs
-#include <ioam/udp-ping/udp_ping_all_api_h.h>
-#undef vl_typedefs
-
-/* declare message handlers for each api */
+#include <ioam/udp-ping/udp_ping.api_enum.h>
+#include <ioam/udp-ping/udp_ping.api_types.h>
#define vl_endianfun /* define message structures */
#define vl_endianfun /* define message structures */
-#include <ioam/udp-ping/udp_ping_all_api_h.h>
-#undef vl_endianfun
-
-/* instantiate all the print functions we know about */
-#define vl_print(handle, ...)
#define vl_printfun
#define vl_printfun
-#include <ioam/udp-ping/udp_ping_all_api_h.h>
-#undef vl_printfun
-
-/* Get the API version number. */
+#define vl_print(handle, ...)
#define vl_api_version(n,v) static u32 api_version=(v);
#define vl_api_version(n,v) static u32 api_version=(v);
-#include <ioam/udp-ping/udp_ping_all_api_h.h>
+#include <ioam/udp-ping/udp_ping.api.h>
+#undef vl_endianfun
+#undef vl_printfun
#undef vl_api_version
#undef vl_api_version
-
typedef struct
{
/* API message ID base */
typedef struct
{
/* API message ID base */