Motr  M0
ns_iter.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_COB_NS_ITER_H__
26 #define __MOTR_COB_NS_ITER_H__
27 
28 #include "cob/cob.h"
29 
52 
56 };
57 
65 M0_INTERNAL int m0_cob_ns_iter_init(struct m0_cob_fid_ns_iter *iter,
66  struct m0_fid *gfid,
67  struct m0_cob_domain *cdom);
68 
75 M0_INTERNAL int m0_cob_ns_iter_next(struct m0_cob_fid_ns_iter *iter,
76  struct m0_fid *gfid,
77  struct m0_cob_nsrec **nsrec);
78 
79 M0_INTERNAL int m0_cob_ns_rec_of(struct m0_be_btree *cob_namespace,
80  const struct m0_fid *key_gfid,
81  struct m0_fid *next_gfid,
82  struct m0_cob_nsrec **nsrec);
83 
88 M0_INTERNAL void m0_cob_ns_iter_fini(struct m0_cob_fid_ns_iter *iter);
89 
92 #endif /* __MOTR_COB_NS_ITER_H__ */
93 /*
94  * Local variables:
95  * c-indentation-style: "K&R"
96  * c-basic-offset: 8
97  * tab-width: 8
98  * fill-column: 80
99  * scroll-step: 1
100  * End:
101  */
struct m0_fid cni_last_fid
Definition: ns_iter.h:55
M0_INTERNAL int m0_cob_ns_iter_next(struct m0_cob_fid_ns_iter *iter, struct m0_fid *gfid, struct m0_cob_nsrec **nsrec)
Definition: ns_iter.c:100
M0_INTERNAL void m0_cob_ns_iter_fini(struct m0_cob_fid_ns_iter *iter)
Definition: ns_iter.c:123
struct m0_cob_domain * cni_cdom
Definition: ns_iter.h:51
static struct m0_cob_domain * cdom
Definition: xform.c:55
struct m0_be_btree_cursor cni_it
Definition: ns_iter.h:53
M0_INTERNAL int m0_cob_ns_iter_init(struct m0_cob_fid_ns_iter *iter, struct m0_fid *gfid, struct m0_cob_domain *cdom)
Definition: ns_iter.c:40
Definition: fid.h:38
M0_INTERNAL int m0_cob_ns_rec_of(struct m0_be_btree *cob_namespace, const struct m0_fid *key_gfid, struct m0_fid *next_gfid, struct m0_cob_nsrec **nsrec)
Definition: ns_iter.c:56
struct m0_fid gfid
Definition: dir.c:626