Motr  M0
note_fops.h
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 #pragma once
24 
25 #ifndef __MOTR___HA_NOTE_FOPS_H__
26 #define __MOTR___HA_NOTE_FOPS_H__
27 
28 #include "fop/fop.h"
29 #include "xcode/xcode_attr.h"
30 
31 #include "ha/note.h"
32 #include "ha/note_xc.h"
33 
45  int32_t hs_rc;
48 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
49 
50 M0_INTERNAL int m0_ha_state_fop_init(void);
51 M0_INTERNAL void m0_ha_state_fop_fini(void);
52 
53 extern struct m0_fop_type m0_ha_state_get_fopt;
55 extern struct m0_fop_type m0_ha_state_set_fopt;
56 
59 
61 #endif /* __MOTR___HA_NOTE_FOPS_H__ */
62 
63 /*
64  * Local variables:
65  * c-indentation-style: "K&R"
66  * c-basic-offset: 8
67  * tab-width: 8
68  * fill-column: 80
69  * scroll-step: 1
70  * End:
71  */
72 /*
73  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
74  */
M0_INTERNAL void m0_ha_state_fop_fini(void)
Definition: note_fops.c:37
M0_INTERNAL int m0_ha_state_fop_init(void)
Definition: note_fops.c:44
struct m0_fop_type m0_ha_state_get_fopt
Definition: note_fops.c:33
struct m0_fop_type m0_ha_state_set_fopt
Definition: note_fops.c:35
const struct m0_fom_type_ops * m0_ha_state_set_fom_type_ops
Definition: note_foms.c:192
struct m0_fop_type m0_ha_state_get_rep_fopt
Definition: note_fops.c:34
#define M0_XCA_DOMAIN(value)
Definition: xcode_attr.h:72
const struct m0_fom_type_ops * m0_ha_state_get_fom_type_ops
Definition: note_foms.c:191
int32_t hs_rc
Definition: note_fops.h:45
struct m0_ha_nvec hs_note
Definition: note_fops.h:47