Motr  M0
src_rec.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2017-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_FDMI_FDMI_SRC_REC_H__
26 #define __MOTR_FDMI_FDMI_SRC_REC_H__
27 
28 #include "lib/tlist.h"
29 #include "lib/refs.h"
30 
31 /* This file contains definition of FDMI Source Record. */
32 
33 struct m0_fdmi_src;
34 struct m0_fdmi_src_ctx;
35 
67  uint64_t fsr_magic;
68 
69  /* Source owns fields: */
70 
73 
75  void *fsr_data;
76 
77  /* FDMI dock owns fields: */
78 
81 
87  struct m0_ref fsr_ref;
88 
93 
96 
99 
100  /* Used for UT. Meaning: true if any filter matched this record. */
107 
112 };
113 
116 M0_INTERNAL bool m0_fdmi__record_is_valid(struct m0_fdmi_src_rec *src_rec);
117 
120 #endif /* __MOTR_FDMI_FDMI_SRC_REC_H__ */
121 
122 /*
123  * Local variables:
124  * c-indentation-style: "K&R"
125  * c-basic-offset: 8
126  * tab-width: 8
127  * fill-column: 80
128  * scroll-step: 1
129  * End:
130  */
131 /*
132  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
133  */
struct m0_tlink fsr_linkage
Definition: src_rec.h:95
struct m0_tl fsr_filter_list
Definition: src_rec.h:92
uint64_t fsr_magic
Definition: src_rec.h:67
bool fsr_dryrun
Definition: src_rec.h:106
uint64_t m0_time_t
Definition: time.h:37
struct m0_uint128 fsr_rec_id
Definition: src_rec.h:80
M0_INTERNAL bool m0_fdmi__record_is_valid(struct m0_fdmi_src_rec *src_rec)
Definition: source_dock.c:121
bool fsr_matched
Definition: src_rec.h:101
struct m0_ref fsr_ref
Definition: src_rec.h:87
struct m0_fdmi_src * fsr_src
Definition: src_rec.h:72
Definition: refs.h:34
Definition: tlist.h:251
void * fsr_data
Definition: src_rec.h:75
m0_time_t fsr_init_time
Definition: src_rec.h:111
struct m0_fdmi_src_ctx * fsr_src_ctx
Definition: src_rec.h:98