blob: 5b4f090af9a563fabe08fe4e0c24f5fb8385bfc2 [file] [log] [blame]
Florin Corase86a8ed2018-01-05 03:20:25 -08001/*
2 *------------------------------------------------------------------
3 * Copyright (c) 2018 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *------------------------------------------------------------------
16 */
17
18#ifndef SRC_VLIBMEMORY_MEMORY_CLIENT_H_
19#define SRC_VLIBMEMORY_MEMORY_CLIENT_H_
20
21#include <vlibmemory/memory_shared.h>
22
23int vl_client_connect (const char *name, int ctx_quota, int input_queue_size);
24void vl_client_disconnect (void);
25int vl_client_api_map (const char *region_name);
26void vl_client_api_unmap (void);
27void vl_client_disconnect_from_vlib (void);
28int vl_client_connect_to_vlib (const char *svm_name, const char *client_name,
29 int rx_queue_size);
30int vl_client_connect_to_vlib_no_rx_pthread (const char *svm_name,
31 const char *client_name,
32 int rx_queue_size);
33int vl_client_connect_to_vlib_no_map (const char *svm_name,
34 const char *client_name,
35 int rx_queue_size);
36void vl_client_install_client_message_handlers (void);
37
38#endif /* SRC_VLIBMEMORY_MEMORY_CLIENT_H_ */
39
40/*
41 * fd.io coding-style-patch-verification: ON
42 *
43 * Local Variables:
44 * eval: (c-set-style "gnu")
45 * End:
46 */