Motr  M0
ping_fop.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2012-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_RPC_IT_PING_FOP_H__
26 #define __MOTR_RPC_IT_PING_FOP_H__
27 
28 #include "fop/fop.h"
29 #include "rpc/rpc_opcodes.h"
30 #include "lib/types.h"
31 #include "xcode/xcode_attr.h"
32 
33 M0_INTERNAL void m0_ping_fop_init(void);
34 M0_INTERNAL void m0_ping_fop_fini(void);
35 
39 extern struct m0_fop_type m0_fop_ping_fopt;
40 extern struct m0_fop_type m0_fop_ping_rep_fopt;
41 
42 extern const struct m0_fop_type_ops m0_fop_ping_ops;
43 extern const struct m0_fop_type_ops m0_fop_ping_rep_ops;
44 
45 extern const struct m0_rpc_item_type m0_rpc_item_type_ping;
47 
49  uint32_t f_count;
50  uint64_t *f_data;
51 } M0_XCA_SEQUENCE M0_XCA_DOMAIN(rpc);
52 
53 struct m0_fop_ping {
55 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
56 
58  int32_t fpr_rc;
59 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
60 
61 /* __MOTR_RPC_IT_PING_FOP_H__ */
62 #endif
63 
64 /*
65  * Local variables:
66  * c-indentation-style: "K&R"
67  * c-basic-offset: 8
68  * tab-width: 8
69  * fill-column: 80
70  * scroll-step: 1
71  * End:
72  */
const struct m0_rpc_item_type m0_rpc_item_type_ping
int32_t fpr_rc
Definition: ping_fop.h:58
uint32_t f_count
Definition: ping_fop.h:49
struct m0_fop_ping_arr M0_XCA_DOMAIN(rpc)
M0_INTERNAL void m0_ping_fop_init(void)
Definition: ping_fop.c:47
const struct m0_fop_type_ops m0_fop_ping_rep_ops
struct m0_fop_type m0_fop_ping_fopt
Definition: ping_fop.c:34
const struct m0_rpc_item_type m0_rpc_item_type_ping_rep
const struct m0_fop_type_ops m0_fop_ping_ops
uint64_t * f_data
Definition: ping_fop.h:50
struct m0_fop_type m0_fop_ping_rep_fopt
Definition: ping_fop.c:35
M0_INTERNAL void m0_ping_fop_fini(void)
Definition: ping_fop.c:37
struct m0_fop_ping_arr fp_arr
Definition: ping_fop.h:54