Python-API: Inital commit of Python bindings for the VPP API.
[vpp.git] / vlib-api / vlibmemory / api.h
index 7f2f6fa..516d321 100644 (file)
@@ -86,6 +86,13 @@ typedef struct vl_shmem_hdr_ {
 
 } vl_shmem_hdr_t;
 
+/* Note that the size of the structure is 16 bytes, with 4 bytes of padding after data[0]. */
+typedef struct msgbuf_ {
+    unix_shared_memory_queue_t *q;
+    u32 data_len;
+    u8 data[0];
+} msgbuf_t;
+
 #define VL_SHM_VERSION 2
 
 #define VL_API_EPOCH_MASK 0xFF
@@ -109,8 +116,6 @@ static inline u32 vl_msg_api_handle_from_index_and_epoch (u32 index, u32 epoch)
     return handle;
 }
     
-
-
 void *vl_msg_api_alloc(int nbytes);
 void *vl_msg_api_alloc_as_if_client (int nbytes);
 void vl_msg_api_free(void *a);
@@ -136,4 +141,6 @@ int vl_client_connect_to_vlib_no_rx_pthread (char *svm_name, char *client_name,
                                              int rx_queue_size);
 u16 vl_client_get_first_plugin_msg_id (char * plugin_name);
 
+void vl_api_rpc_call_main_thread (void *fp, u8 * data, u32 data_length);
+
 #endif /* included_vlibmemory_api_h */