X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvpp-api%2Fclient%2Fclient.c;h=7a30792402c70370dbb966aad64db0217aa909b3;hp=902ed3bd625bf8300e7d61a91ac65036de02a6cf;hb=36217e3ca;hpb=fd8deb48c7ad63b47c5d7465ceefcadef0316f93 diff --git a/src/vpp-api/client/client.c b/src/vpp-api/client/client.c index 902ed3bd625..7a30792402c 100644 --- a/src/vpp-api/client/client.c +++ b/src/vpp-api/client/client.c @@ -30,7 +30,8 @@ #include #include -#include +#include +#include #include "vppapiclient.h" @@ -48,14 +49,6 @@ bool rx_thread_done; * vac_read() -> resumes RX thread */ -#define vl_typedefs /* define message structures */ -#include -#undef vl_typedefs - -#define vl_endianfun /* define message structures */ -#include -#undef vl_endianfun - typedef struct { u8 connected_to_vlib; pthread_t rx_thread_handle; @@ -108,14 +101,6 @@ cleanup (void) clib_memset(pm, 0, sizeof(*pm)); } -/* - * Satisfy external references when -lvlib is not available. - */ -void vlib_cli_output (struct vlib_main_t * vm, char * fmt, ...) -{ - clib_warning ("vlib_cli_output called..."); -} - void vac_free (void * msg) { @@ -497,10 +482,11 @@ vac_read (char **p, int *l, u16 timeout) /* * XXX: Makes the assumption that client_index is the first member */ -typedef VL_API_PACKED(struct _vl_api_header { +typedef struct _vl_api_header +{ u16 _vl_msg_id; u32 client_index; -}) vl_api_header_t; +} __attribute__ ((packed)) vl_api_header_t; static u32 vac_client_index (void)