diff options
author | Junfeng Wang <drenfong.wang@intel.com> | 2019-09-09 08:13:54 -0400 |
---|---|---|
committer | Junfeng Wang <drenfong.wang@intel.com> | 2019-09-09 08:43:57 -0400 |
commit | fc48eef0ef72c8fd7ebd55f9692b6a83695ec405 (patch) | |
tree | 8ee3aa96cdb90d7507cf4f42b740dc09142009fb /src/dpi_api.c | |
parent | 2234c30a625ec2c38f7fb9d0c7e7ddd02a0f038f (diff) |
modify source codev0.0
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 <drenfong.wang@intel.com>
Diffstat (limited to 'src/dpi_api.c')
-rw-r--r-- | src/dpi_api.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 <vppinfra/byte_order.h> #include <vlibmemory/api.h> -#include <dpi/dpi.h> +#include "dpi.h" #define vl_msg_id(n,h) n, typedef enum { -#include <dpi/dpi.api.h> +#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 <dpi/dpi.api.h> +#include "dpi.api.h" #undef vl_typedefs /* define generated endian-swappers */ #define vl_endianfun -#include <dpi/dpi.api.h> +#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 <dpi/dpi.api.h> +#include "dpi.api.h" #undef vl_printfun /* Get the API version number */ #define vl_api_version(n,v) static u32 api_version=(v); -#include <dpi/dpi.api.h> +#include "dpi.api.h" #undef vl_api_version #define vl_msg_name_crc_list -#include <dpi/dpi.api.h> +#include "dpi.api.h" #undef vl_msg_name_crc_list #define REPLY_MSG_ID_BASE dm->msg_id_base |