From fc48eef0ef72c8fd7ebd55f9692b6a83695ec405 Mon Sep 17 00:00:00 2001 From: Junfeng Wang Date: Mon, 9 Sep 2019 08:13:54 -0400 Subject: modify source code 1. add CMakeList for udpi 2. modify code to make it can be compiled without vpp source code Change-Id: Iabb7337a0db95d981f4ecc4e3e0cc3a3545dd5cf Signed-off-by: Junfeng Wang --- src/dpi_api.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/dpi_api.c') diff --git a/src/dpi_api.c b/src/dpi_api.c index 540d1a2..d8fa690 100644 --- a/src/dpi_api.c +++ b/src/dpi_api.c @@ -24,13 +24,13 @@ #include #include -#include +#include "dpi.h" #define vl_msg_id(n,h) n, typedef enum { -#include +#include "dpi.api.h" /* We'll want to know how many messages IDs we need... */ VL_MSG_FIRST_AVAILABLE, } vl_msg_id_t; @@ -38,27 +38,27 @@ typedef enum /* define message structures */ #define vl_typedefs -#include +#include "dpi.api.h" #undef vl_typedefs /* define generated endian-swappers */ #define vl_endianfun -#include +#include "dpi.api.h" #undef vl_endianfun /* instantiate all the print functions we know about */ #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) #define vl_printfun -#include +#include "dpi.api.h" #undef vl_printfun /* Get the API version number */ #define vl_api_version(n,v) static u32 api_version=(v); -#include +#include "dpi.api.h" #undef vl_api_version #define vl_msg_name_crc_list -#include +#include "dpi.api.h" #undef vl_msg_name_crc_list #define REPLY_MSG_ID_BASE dm->msg_id_base -- cgit 1.2.3-korg