|
| u32 | vapi_gen_req_context (vapi_ctx_t ctx) |
| |
| size_t | vapi_get_request_count (vapi_ctx_t ctx) |
| |
| bool | vapi_requests_full (vapi_ctx_t ctx) |
| |
| bool | vapi_requests_empty (vapi_ctx_t ctx) |
| |
| static int | vapi_requests_end (vapi_ctx_t ctx) |
| |
| void | vapi_store_request (vapi_ctx_t ctx, u32 context, bool is_dump, vapi_cb_t callback, void *callback_ctx) |
| |
| void * | vapi_msg_alloc (vapi_ctx_t ctx, size_t size) |
| | allocate vapi message of given size More...
|
| |
| void | vapi_msg_free (vapi_ctx_t ctx, void *msg) |
| | free a vapi message More...
|
| |
| vapi_msg_id_t | vapi_lookup_vapi_msg_id_t (vapi_ctx_t ctx, u16 vl_msg_id) |
| |
| vapi_error_e | vapi_ctx_alloc (vapi_ctx_t *result) |
| | allocate vapi context More...
|
| |
| void | vapi_ctx_free (vapi_ctx_t ctx) |
| | free vapi context More...
|
| |
| bool | vapi_is_msg_available (vapi_ctx_t ctx, vapi_msg_id_t id) |
| | check if message identified by it's message id is known by the vpp to which the connection is open More...
|
| |
| vapi_error_e | vapi_connect (vapi_ctx_t ctx, const char *name, const char *chroot_prefix, int max_outstanding_requests, int response_queue_size, vapi_mode_e mode) |
| | connect to vpp More...
|
| |
| vapi_error_e | vapi_disconnect (vapi_ctx_t ctx) |
| | disconnect from vpp More...
|
| |
| vapi_error_e | vapi_get_fd (vapi_ctx_t ctx, int *fd) |
| | get event file descriptor More...
|
| |
| vapi_error_e | vapi_send (vapi_ctx_t ctx, void *msg) |
| | low-level api for sending messages to vpp More...
|
| |
| vapi_error_e | vapi_send2 (vapi_ctx_t ctx, void *msg1, void *msg2) |
| | low-level api for atomically sending two messages to vpp - either both messages are sent or neither one is More...
|
| |
| vapi_error_e | vapi_recv (vapi_ctx_t ctx, void **msg, size_t *msg_size) |
| | low-level api for reading messages from vpp More...
|
| |
| vapi_error_e | vapi_wait (vapi_ctx_t ctx, vapi_wait_mode_e mode) |
| | wait for connection to become readable or writable More...
|
| |
| static vapi_error_e | vapi_dispatch_response (vapi_ctx_t ctx, vapi_msg_id_t id, u32 context, void *msg) |
| |
| static vapi_error_e | vapi_dispatch_event (vapi_ctx_t ctx, vapi_msg_id_t id, void *msg) |
| |
| bool | vapi_msg_is_with_context (vapi_msg_id_t id) |
| |
| vapi_error_e | vapi_dispatch_one (vapi_ctx_t ctx) |
| | pick next message sent by vpp and call the appropriate callback More...
|
| |
| vapi_error_e | vapi_dispatch (vapi_ctx_t ctx) |
| | loop vapi_dispatch_one until responses to all currently outstanding requests have been received and their callbacks called More...
|
| |
| void | vapi_set_event_cb (vapi_ctx_t ctx, vapi_msg_id_t id, vapi_event_cb callback, void *callback_ctx) |
| | set event callback to call when message with given id is dispatched More...
|
| |
| void | vapi_clear_event_cb (vapi_ctx_t ctx, vapi_msg_id_t id) |
| | clear event callback for given message id More...
|
| |
| void | vapi_set_generic_event_cb (vapi_ctx_t ctx, vapi_generic_event_cb callback, void *callback_ctx) |
| | set generic event callback More...
|
| |
| void | vapi_clear_generic_event_cb (vapi_ctx_t ctx) |
| | clear generic event callback More...
|
| |
| u16 | vapi_lookup_vl_msg_id (vapi_ctx_t ctx, vapi_msg_id_t id) |
| |
| int | vapi_get_client_index (vapi_ctx_t ctx) |
| |
| bool | vapi_is_nonblocking (vapi_ctx_t ctx) |
| |
| size_t | vapi_get_max_request_count (vapi_ctx_t ctx) |
| |
| int | vapi_get_payload_offset (vapi_msg_id_t id) |
| |
| size_t | vapi_get_message_size (vapi_msg_id_t id) |
| |
| size_t | vapi_get_context_offset (vapi_msg_id_t id) |
| |
| vapi_msg_id_t | vapi_register_msg (vapi_message_desc_t *msg) |
| |
| vapi_error_e | vapi_producer_lock (vapi_ctx_t ctx) |
| |
| vapi_error_e | vapi_producer_unlock (vapi_ctx_t ctx) |
| |
| size_t | vapi_get_message_count () |
| |
| const char * | vapi_get_msg_name (vapi_msg_id_t id) |
| |