Motr  M0
helper.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
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  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_HA_UT_HELPER_H__
26 #define __MOTR_HA_UT_HELPER_H__
27 
34 #include "net/net.h" /* m0_net_domain */
35 #include "net/buffer_pool.h" /* m0_net_buffer_pool */
36 #include "reqh/reqh.h" /* m0_reqh */
37 #include "rpc/rpc.h" /* m0_rpc_machine_init */
38 #include "rpc/conn.h" /* m0_rpc_conn */
39 #include "rpc/session.h" /* m0_rpc_session */
40 
41 enum {
43 };
44 
50 };
51 
55 };
56 
57 M0_INTERNAL void m0_ha_ut_rpc_ctx_init(struct m0_ha_ut_rpc_ctx *ctx);
58 M0_INTERNAL void m0_ha_ut_rpc_ctx_fini(struct m0_ha_ut_rpc_ctx *ctx);
59 
60 M0_INTERNAL void
62  struct m0_ha_ut_rpc_ctx *ctx);
63 M0_INTERNAL void
65 
67 #endif /* __MOTR_HA_UT_HELPER_H__ */
68 
69 /*
70  * Local variables:
71  * c-indentation-style: "K&R"
72  * c-basic-offset: 8
73  * tab-width: 8
74  * fill-column: 80
75  * scroll-step: 1
76  * End:
77  */
78 /*
79  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
80  */
struct m0_net_domain hurc_net_domain
Definition: helper.h:46
M0_INTERNAL void m0_ha_ut_rpc_ctx_init(struct m0_ha_ut_rpc_ctx *ctx)
Definition: helper.c:41
struct m0_net_buffer_pool hurc_buffer_pool
Definition: helper.h:47
static struct m0_rpc_server_ctx sctx
Definition: console.c:88
Definition: reqh.h:94
M0_INTERNAL void m0_ha_ut_rpc_ctx_fini(struct m0_ha_ut_rpc_ctx *ctx)
Definition: helper.c:73
struct m0_reqh hurc_reqh
Definition: helper.h:48
M0_INTERNAL void m0_ha_ut_rpc_session_ctx_fini(struct m0_ha_ut_rpc_session_ctx *sctx)
Definition: helper.c:98
struct m0_rpc_machine hurc_rpc_machine
Definition: helper.h:49
M0_INTERNAL void m0_ha_ut_rpc_session_ctx_init(struct m0_ha_ut_rpc_session_ctx *sctx, struct m0_ha_ut_rpc_ctx *ctx)
Definition: helper.c:84
struct m0_rpc_session husc_session
Definition: helper.h:54
Definition: nucleus.c:42
struct m0_rpc_conn husc_conn
Definition: helper.h:53