Motr  M0
sns_cp_onwire.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-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 #include "fop/fop.h"
24 
25 #include "sns/cm/cm.h"
26 #include "sns/cm/cp.h"
27 #include "rpc/rpc_opcodes.h"
28 
29 M0_INTERNAL void m0_sns_cpx_init(struct m0_fop_type *ft,
30  const struct m0_fom_type_ops *fomt_ops,
31  enum M0_RPC_OPCODES op,
32  const char *name,
33  const struct m0_xcode_type *xt,
34  uint64_t rpc_flags, struct m0_cm_type *cmt)
35 {
37  .name = name,
38  .opcode = op,
39  .xt = xt,
40  .rpc_flags = rpc_flags,
41  .fom_ops = fomt_ops,
42  .sm = &m0_generic_conf,
43  .svc_type = &cmt->ct_stype);
44 }
45 
46 M0_INTERNAL void m0_sns_cpx_fini(struct m0_fop_type *ft)
47 {
49 }
50 
51 /*
52  * Local variables:
53  * c-indentation-style: "K&R"
54  * c-basic-offset: 8
55  * tab-width: 8
56  * fill-column: 80
57  * scroll-step: 1
58  * End:
59  */
M0_RPC_OPCODES
Definition: rpc_opcodes.h:41
M0_INTERNAL void m0_sns_cpx_init(struct m0_fop_type *ft, const struct m0_fom_type_ops *fomt_ops, enum M0_RPC_OPCODES op, const char *name, const struct m0_xcode_type *xt, uint64_t rpc_flags, struct m0_cm_type *cmt)
Definition: sns_cp_onwire.c:29
#define M0_FOP_TYPE_INIT(ft,...)
Definition: fop.h:307
void m0_fop_type_fini(struct m0_fop_type *fopt)
Definition: fop.c:232
static struct m0_xcode_type ** xt[]
Definition: protocol.c:64
const struct m0_sm_conf m0_generic_conf
Definition: fom_generic.c:838
struct m0_fom_type_ops fomt_ops
Definition: pd_ut.c:179
op
Definition: libdemo.c:64
int opcode
Definition: crate.c:301
M0_INTERNAL void m0_sns_cpx_fini(struct m0_fop_type *ft)
Definition: sns_cp_onwire.c:46
const char * name
Definition: trace.c:110
Definition: cm.h:143
struct m0_reqh_service_type ct_stype
Definition: cm.h:145
static struct m0_fop_type * ft[]
Definition: service_ut.c:856