#include <sys/stat.h>
#include <vlibmemory/api.h>
-#include <vlibsocket/api.h>
-#include <vlibsocket/vl_socket_msg_enum.h>
+
+#include <vlibmemory/vl_memory_msg_enum.h>
#define vl_typedefs /* define message structures */
-#include <vlibsocket/vl_socket_api_h.h>
+#include <vlibmemory/vl_memory_api_h.h>
#undef vl_typedefs
/* instantiate all the print functions we know about */
#define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
#define vl_printfun
-#include <vlibsocket/vl_socket_api_h.h>
+#include <vlibmemory/vl_memory_api_h.h>
#undef vl_printfun
/* instantiate all the endian swap functions we know about */
#define vl_endianfun
-#include <vlibsocket/vl_socket_api_h.h>
+#include <vlibmemory/vl_memory_api_h.h>
#undef vl_endianfun
static void
vl_api_registration_t *rp = socket_main.current_rp;
clib_file_del (fm, uf);
- vl_free_socket_registration_index (rp->vl_api_registration_pool_index);
+ vl_socket_free_registration_index (rp->vl_api_registration_pool_index);
}
u32
}
strncpy ((char *) mp->name, my_hostname, sizeof (mp->name) - 1);
- vl_msg_api_send (rp, (u8 *) mp);
+ vl_api_send_msg (rp, (u8 *) mp);
return rp - socket_main.registration_pool;
}
mp->_vl_msg_id = ntohs (VL_API_SOCKCLNT_DELETE);
mp->handle = rp->server_handle;
mp->index = rp->server_index;
- vl_msg_api_send (rp, (u8 *) mp);
+ vl_api_send_msg (rp, (u8 *) mp);
}
vl_api_registration_t *