20 #ifndef included_api_common_h 21 #define included_api_common_h 94 #define VL_API_LITTLE_ENDIAN 0x00 95 #define VL_API_BIG_ENDIAN 0x01 140 void *print,
int msg_size,
int traced);
153 u16 msg_id_host_byte_order);
162 typedef struct _vl_msg_api_init_function_list_elt
164 struct _vl_msg_api_init_function_list_elt *next_init_function;
166 } _vl_msg_api_function_list_elt_t;
170 void (**msg_handlers) (
void *);
171 int (**pd_msg_handlers) (
void *, int);
172 void (**msg_cleanup_handlers) (
void *);
173 void (**msg_endian_handlers) (
void *);
174 void (**msg_print_handlers) (
void *,
void *);
void vl_msg_api_config(vl_msg_api_msg_config_t *)
u16 vl_msg_api_get_msg_ids(const char *name, int n)
trace_cfg_t * api_trace_cfg
unix_shared_memory_queue_t * vl_input_queue
_vl_msg_api_function_list_elt_t * reaper_function_registrations
void vl_msg_api_set_cleanup_handler(int msg_id, void *fp)
vl_api_registration_t * my_registration
vl_api_trace_t * rx_trace
void vl_msg_api_handler_no_trace_no_free(void *the_msg)
vl_api_registration_t ** vl_clients
struct vl_shmem_hdr_ * shmem_hdr
void vl_msg_api_set_first_available_msg_id(u16 first_avail)
void vl_msg_api_post_mortem_dump(void)
u32 vl_api_get_msg_index(u8 *name_and_crc)
vl_registration_type_t registration_type
struct vl_api_registration_ vl_api_registration_t
void vl_msg_api_free(void *)
void vl_msg_api_handler(void *the_msg)
static void cleanup(void)
void vl_msg_api_trace_only(void *the_msg)
void vl_msg_api_barrier_sync(void)
u32 unprocessed_msg_length
void vl_msg_api_socket_handler(void *the_msg)
void vl_msg_api_handler_no_free(void *the_msg)
void vl_msg_api_set_handlers(int msg_id, char *msg_name, void *handler, void *cleanup, void *endian, void *print, int msg_size, int traced)
unix_shared_memory_queue_t * vl_input_queue
unix_shared_memory_queue_t * q
vl_api_msg_range_t * msg_ranges
void vl_noop_handler(void *mp)
int vl_msg_api_pd_handler(void *mp, int rv)
void vl_msg_api_barrier_release(void)
void vl_msg_api_increment_missing_client_counter(void)
vl_api_trace_t * tx_trace
u8 * serialized_message_table_in_shmem
struct ring_alloc_ * arings
void vl_msg_api_post_mortem_dump_enable_disable(int enable)
u32 vl_api_registration_pool_index
void vl_msg_api_register_pd_handler(void *handler, u16 msg_id_host_byte_order)
void vl_msg_api_queue_handler(unix_shared_memory_queue_t *q)
u16 first_available_msg_id
void vl_msg_api_replay_handler(void *the_msg)
void vl_msg_api_cleanup_handler(void *the_msg)
svm_region_t ** mapped_shmem_regions
uword * msg_index_by_name_and_crc
uword * msg_range_by_name
u32 vlib_input_queue_length
clib_error_t *( vl_msg_api_init_function_t)(u32 client_index)
struct _unix_shared_memory_queue unix_shared_memory_queue_t