Lightweight Parallel Foundations 1.0.1-alpha 2023-06-26T11:02:34Z
A high performance and model-compliant communication layer
rpc-client.h
Go to the documentation of this file.
1
2/*
3 * Copyright 2021 Huawei Technologies Co., Ltd.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef LPFLIB_RPC_CLIENT
19#define LPFLIB_RPC_CLIENT
20
21#include <lpf/core.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
48
58
60extern _LPFLIB_API const lpf_rpc_server_t LPF_RPC_SERVER_NONE;
61
63extern _LPFLIB_API const lpf_rpc_query_t LPF_RPC_QUERY_NONE;
64
66extern _LPFLIB_API const lpf_err_t LPF_ERR_RPC_FAILED;
67
92extern _LPFLIB_API
94 const void * const payload,
95 const size_t payload_size,
96 const size_t response_size,
97 lpf_rpc_query_t * const query
98);
99
114extern _LPFLIB_API
116
152extern _LPFLIB_API
153lpf_err_t lpf_rpc_send_query( lpf_rpc_query_t query, lpf_rpc_server_t server, void * * const response );
154
158#ifdef __cplusplus
159}
160#endif
161
162#endif //end ``LPFLIB_RPC_CLIENT''
163
typedef lpf_init_t
Definition: core.h:919
typedef lpf_err_t
Definition: core.h:871
lpf_err_t lpf_rpc_send_query(lpf_rpc_query_t query, lpf_rpc_server_t server, void **const response)
lpf_err_t lpf_rpc_query_create(const void *const payload, const size_t payload_size, const size_t response_size, lpf_rpc_query_t *const query)
const lpf_rpc_query_t LPF_RPC_QUERY_NONE
lpf_args_t lpf_rpc_query_t
Definition: rpc-client.h:57
lpf_init_t lpf_rpc_server_t
Definition: rpc-client.h:47
lpf_err_t lpf_rpc_query_destroy(lpf_rpc_query_t query)
const lpf_rpc_server_t LPF_RPC_SERVER_NONE
const lpf_err_t LPF_ERR_RPC_FAILED
Definition: core.h:822